Get instruction opcode + operands for page fault

Josef Stark j.stark at tum.de
Fri Feb 2 14:32:08 CET 2018


Hi all,

when a page fault occurs, does the Instruction Register contain the 
actual instruction that caused the fault or the previous instruction? In 
the former case, how can I access it? I need the opcode + the operands 
(like source/target registers). I already have the memory address that 
the instruction tried to access.

I'm on ARM A9, so only load/store instructions can cause a page fault.

I know that I could also look at the address where my IP is pointing to 
and get the instruction from there, but I'm wondering which way would be 
easier/better.

Cheers,
Josef




More information about the l4-hackers mailing list