diff options
Diffstat (limited to 'gdb/gdbserver/linux-nios2-low.c')
-rw-r--r-- | gdb/gdbserver/linux-nios2-low.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/linux-nios2-low.c b/gdb/gdbserver/linux-nios2-low.c index ea0ded1..a32bc1a 100644 --- a/gdb/gdbserver/linux-nios2-low.c +++ b/gdb/gdbserver/linux-nios2-low.c @@ -183,7 +183,7 @@ nios2_supply_register (struct regcache *regcache, int regno, static void nios2_fill_gregset (struct regcache *regcache, void *buf) { - union nios2_register *regset = buf; + union nios2_register *regset = (union nios2_register *) buf; int i; for (i = 1; i < nios2_num_regs; i++) @@ -193,7 +193,7 @@ nios2_fill_gregset (struct regcache *regcache, void *buf) static void nios2_store_gregset (struct regcache *regcache, const void *buf) { - const union nios2_register *regset = buf; + const union nios2_register *regset = (union nios2_register *) buf; int i; for (i = 0; i < nios2_num_regs; i++) |