1 # Remove the MISCREG_CPSR_MODE register from the ARM register file
3 if cpt
.get('root','isa') == 'arm':
4 for sec
in cpt
.sections():
6 # Search for all ISA sections
7 if re
.search('.*sys.*\.cpu.*\.isa$', sec
):
8 mr
= cpt
.get(sec
, 'miscRegs').split()
9 # Remove MISCREG_CPSR_MODE
11 cpt
.set(sec
, 'miscRegs', ' '.join(str(x
) for x
in mr
))