diff options
Diffstat (limited to 'sim/rx/gdb-if.c')
-rw-r--r-- | sim/rx/gdb-if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index 8922228fc89..ca4116135d8 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -534,12 +534,12 @@ sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length) check_desc (sd); if (!check_regno (regno)) - return 0; + return -1; size = reg_size (regno); if (length != size) - return 0; + return -1; if (rx_big_endian) val = get_be (buf, length); @@ -630,7 +630,7 @@ sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length) default: fprintf (stderr, "rx minisim: unrecognized register number: %d\n", regno); - return -1; + return 0; } return size; |