Bug 364728

Summary: Power PC, missing support for several HW registrs in get_otrack_shadow_offset_wrk()
Product: [Developer tools] valgrind Reporter: Carl Love <cel>
Component: vexAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.12 SVN   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Add missing register support

Description Carl Love 2016-06-24 23:07:58 UTC
The Hardware trasaction registers and a couple of other HW registers are not supported in get_otrack_shadow_offset_wrk(), specifically:

NRADDR, NRADDR_GPR2, (REDIR_STACK, TFHAR, TEXASR, TEXASRU, TFIAR, PPR, PSPB

When running  valgrind --tool=memcheck --track-origins=yes --vex-iropt-level=0 ./test_isa_3_0 -i
valgrind crashes with the message:

MC_(get_otrack_shadow_offset)(ppc64)(off=1376,sz=8)

Memcheck: mc_machine.c:332 (get_otrack_shadow_offset_wrk): the 'impossible' happened.


Reproducible: Always
Comment 1 Carl Love 2016-06-27 15:36:43 UTC
Created attachment 99724 [details]
Add missing register support
Comment 2 Carl Love 2016-06-27 15:51:03 UTC
Committed revision 15895.