ARM: Move the CP15 decode block into a function.
This commit is contained in:
parent
5d9191a428
commit
98fe7b0fbe
1 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
'''
|
||||
}};
|
||||
|
|
Loading…
Reference in a new issue