Bug 9481 - powerpc timebase cannot be read via mfspr 268 / mfspr 269
Summary: powerpc timebase cannot be read via mfspr 268 / mfspr 269
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: sim (show other bugs)
Version: 6.6
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-03 23:08 UTC by strauman
Modified: 2015-07-15 07:32 UTC (History)
3 users (show)

See Also:
Host:
Target: powerpc-*
Build:
Last reconfirmed:


Attachments
psim-tb-spr.diff (480 bytes, application/octet-stream)
, strauman
Details

Note You need to log in before you can comment on or make changes to this bug.
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