aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/psim.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index a08d389..645e29a 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -889,8 +889,7 @@ psim_read_register(psim *system,
default:
printf_filtered("psim_read_register(processor=%p,buf=%p,reg=%s) %s\n",
processor, buf, reg, "read of this register unimplemented");
- break;
-
+ return 0;
}
/* the PSIM internal values are in host order. To fetch raw data,
@@ -1077,8 +1076,7 @@ psim_write_register(psim *system,
printf_filtered("psim_write_register(processor=%p,cooked_buf=%p,reg=%s) %s\n",
processor, cooked_buf, reg,
"read of this register unimplemented");
- break;
-
+ return 0;
}
return description.size;