89a90
> Fault fault = NoFault;
92c93
< return NoFault;
---
> return fault;
119c120,121
< checkCode = "((xc->readMiscReg(PrStart + MISCREG_PSTATE))<2:2>)"
---
> checkCode = '''((xc->readMiscReg(PrStart + MISCREG_PSTATE))<2:2>) ||
> ((xc->readMiscReg(HprStart + MISCREG_HPSTATE))<2:2>)'''
124a127,132
> def format HPriv(code, *opt_flags) {{
> checkCode = "((xc->readMiscReg(HprStart + MISCREG_HPSTATE))<2:2>)"
> (header_output, decoder_output,
> exec_output, decode_block) = doPrivFormat(code,
> checkCode, name, Name, opt_flags)
> }};