[PATCH] Update remote-m32r-sdi.c
Kei Sakamoto
sakamoto.kei@renesas.com
Thu Feb 1 05:06:00 GMT 2007
I've approved and committed this patch.
Kei Sakamoto
Kazuhiro Inaoka wrote:
> Hi Kei,
>
> Please update remote-m32r-sdi.c to change PWD mask for current m32r2.
>
> Please applay the patch.
>
> Regards,
>
> Kazuhiro Inaoka
> EC No. H05-0044
>
>
>
> ------------------------------------------------------------------------
>
> 2006-01-31 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
>
> * gdb/remote-m32r.sdi.c (m32r_fetch_register): Changed PWD mask.
> (m32r_store_register): Ditto.
>
> --- gdb/remote-m32r-sdi.c.orig 2006-04-19 15:36:37.000000000 +0900
> +++ gdb/remote-m32r-sdi.c 2006-09-14 19:22:48.000000000 +0900
> @@ -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
More information about the Gdb-patches
mailing list