This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
remote/2449: PPC upper/lower BAT registers swapped in monitor reg command
- From: mhcox at bluezoosoftware dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 16 Apr 2008 04:44:57 -0000
- Subject: remote/2449: PPC upper/lower BAT registers swapped in monitor reg command
- Reply-to: mhcox at bluezoosoftware dot com
>Number: 2449
>Category: remote
>Synopsis: PPC upper/lower BAT registers swapped in monitor reg command
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 16 04:48:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: mhcox@bluezoosoftware.com
>Release: 6.6 and 6.8
>Organization:
>Environment:
ppc-eabi-gdb cross debugger running on x86_64-redhat-linux. Connected to a Macraigor OCDemon usb2Demon JTAG/COP interface.
>Description:
Using the "monitor reg <SPR register>" command to display upper/lower BAT registers, e.g. ibat0l (el), ibat2u, etc., shows the uppper/lower BAT registers swapped, i.e. ibat1l is displayed when executing "monitor reg ibat1u".
Note that "monitor spr 530" (SPR 530 is ibat1u) displays the correct register.
Running Macraigor's OCD Commander tool's REG command to display BAT registers correctly confirmed the usb2Demon is working properly.
>How-To-Repeat:
Run the following in a ppc-eabi-gdb debugger:
monitor spr 530 # SPR# for ibat1u
monitor spr 531 # SPR# for ibat1l
monitor reg ibat1u
monitor reg ibat1l
Note the values for the BAT registers will be swapped.
>Fix:
Unk
>Release-Note:
>Audit-Trail:
>Unformatted: