diff options
author | Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> | 2007-02-01 05:05:10 +0000 |
---|---|---|
committer | Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> | 2007-02-01 05:05:10 +0000 |
commit | 3e41d55fb432b500085c4e8bfa8574b63df90a08 (patch) | |
tree | 9771bbd569a2be576c34244cac8160c5856a1dee /gdb | |
parent | bd3ebfefd265d61607d83a97cd0a379291b1972b (diff) | |
download | gdb-3e41d55fb432b500085c4e8bfa8574b63df90a08.zip gdb-3e41d55fb432b500085c4e8bfa8574b63df90a08.tar.gz gdb-3e41d55fb432b500085c4e8bfa8574b63df90a08.tar.bz2 |
2006-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
(m32r_store_register): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote-m32r-sdi.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 90acb51..44fec94 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> + + * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask. + (m32r_store_register): Ditto. + 2006-01-30 Vladimir Prus <vladimir@codesourcery.com> * ser-mingw.c (pipe_windows_open) diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index 51d7000..664767a 100644 --- a/gdb/remote-m32r-sdi.c +++ b/gdb/remote-m32r-sdi.c @@ -935,7 +935,7 @@ m32r_fetch_register (int regno) { send_one_arg_cmd (SDI_READ_CPU_REG, SDI_REG_BBPSW); val2 = recv_long_data (); - val = ((0x00c1 & val2) << 8) | ((0xc100 & val) >> 8); + val = ((0x00cf & val2) << 8) | ((0xcf00 & val) >> 8); } if (remote_debug) @@ -990,10 +990,10 @@ m32r_store_register (int regno) send_one_arg_cmd (SDI_READ_CPU_REG, SDI_REG_BBPSW); bbpsw = recv_long_data (); - tmp = (0x00c1 & psw) | ((0x00c1 & regval) << 8); + tmp = (0x00cf & psw) | ((0x00cf & regval) << 8); send_two_arg_cmd (SDI_WRITE_CPU_REG, SDI_REG_PSW, tmp); - tmp = (0x0030 & bbpsw) | ((0xc100 & regval) >> 8); + tmp = (0x0030 & bbpsw) | ((0xcf00 & regval) >> 8); send_two_arg_cmd (SDI_WRITE_CPU_REG, SDI_REG_BBPSW, tmp); } else |