Bug 9481

Summary: powerpc timebase cannot be read via mfspr 268 / mfspr 269
Product: gdb Reporter: strauman
Component: simAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: enhancement CC: gdb-prs, nick.withers, vapier
Priority: P3    
Version: 6.6   
Target Milestone: ---   
Host: Target: powerpc-*
Build: Last reconfirmed:
Attachments: psim-tb-spr.diff

Description strauman 2007-12-03 23:08:01 UTC
[Converted from Gnats 2376]

Apparently, reading the time-base register using the MFSPR
instruction (rather than mftb / mftbu) is not implemented.
AFAIK, it should be part of the VEA (and on real CPUs it works).

Release:
gdb-6.5, gdb-6.6

How-To-Repeat:
mfspr x, 268
mfspr x, 269

crash
Comment 1 strauman 2007-12-03 23:08:01 UTC
Fix:
attached
Comment 2 Nick Withers 2015-07-15 06:09:33 UTC
This was resolved in e3b96e32ca8e5a127ee4142a36480ae60cb2693e
Comment 3 Mike Frysinger 2015-07-15 07:32:00 UTC
thanks for the follow up.  i largely ignore ppc sim reports since the ppc/ subdir is so duplicated with the rest of the tree :/.

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=e3b96e32ca8e5a127ee4142a36480ae60cb2693e