ARM: Define the setend instruction.

This commit is contained in:
Gabe Black 2010-06-02 12:58:10 -05:00
parent fb23297914
commit 4683cd1655

View file

@ -534,4 +534,16 @@ let {{
header_output += BasicDeclare.subst(leavexIop) header_output += BasicDeclare.subst(leavexIop)
decoder_output += BasicConstructor.subst(leavexIop) decoder_output += BasicConstructor.subst(leavexIop)
exec_output += PredOpExecute.subst(leavexIop) exec_output += PredOpExecute.subst(leavexIop)
setendCode = '''
CPSR cpsr = Cpsr;
cpsr.e = imm;
Cpsr = cpsr;
'''
setendIop = InstObjParams("setend", "Setend", "ImmOp",
{ "code": setendCode,
"predicate_test": predicateTest }, [])
header_output += ImmOpDeclare.subst(setendIop)
decoder_output += ImmOpConstructor.subst(setendIop)
exec_output += PredOpExecute.subst(setendIop)
}}; }};