ARM: Move the CP15 decode block into a function.

This commit is contained in:
Gabe Black 2010-06-02 12:58:13 -05:00
parent 5d9191a428
commit 98fe7b0fbe

View file

@ -78,8 +78,14 @@ def format ArmMsrMrs() {{
'''
}};
def format McrMrc15() {{
decode_block = '''
let {{
header_output = '''
StaticInstPtr
decodeMcrMrc15(ExtMachInst machInst);
'''
decoder_output = '''
StaticInstPtr
decodeMcrMrc15(ExtMachInst machInst)
{
const uint32_t opc1 = bits(machInst, 23, 21);
const uint32_t crn = bits(machInst, 19, 16);
@ -180,3 +186,9 @@ def format McrMrc15() {{
}
'''
}};
def format McrMrc15() {{
decode_block = '''
return decodeMcrMrc15(machInst);
'''
}};