aboutsummaryrefslogtreecommitdiff
path: root/target/m68k/m68k-semi.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/m68k/m68k-semi.c')
-rw-r--r--target/m68k/m68k-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/m68k/m68k-semi.c b/target/m68k/m68k-semi.c
index 44ec7e4612..c5c164e096 100644
--- a/target/m68k/m68k-semi.c
+++ b/target/m68k/m68k-semi.c
@@ -381,7 +381,7 @@ void do_m68k_semihosting(CPUM68KState *env, int nr)
qemu_timeval tv;
struct gdb_timeval *p;
result = qemu_gettimeofday(&tv);
- if (result != 0) {
+ if (result == 0) {
if (!(p = lock_user(VERIFY_WRITE,
arg0, sizeof(struct gdb_timeval), 0))) {
/* FIXME - check error code? */