ARM: Implement DBG instruction that doesn't do much for now.
This commit is contained in:
parent
d6736384b2
commit
a02d82f9f8
2 changed files with 10 additions and 1 deletions
|
@ -166,7 +166,7 @@ def format Thumb32BranchesAndMiscCtrl() {{
|
||||||
((enable ? 1 : 0) << 9);
|
((enable ? 1 : 0) << 9);
|
||||||
return new Cps(machInst, mods);
|
return new Cps(machInst, mods);
|
||||||
} else if ((op2 & 0xf0) == 0xf0) {
|
} else if ((op2 & 0xf0) == 0xf0) {
|
||||||
return new WarnUnimplemented("dbg", machInst);
|
return new Dbg(machInst);
|
||||||
} else {
|
} else {
|
||||||
switch (op2) {
|
switch (op2) {
|
||||||
case 0x0:
|
case 0x0:
|
||||||
|
|
|
@ -708,6 +708,15 @@ let {{
|
||||||
decoder_output += BasicConstructor.subst(dmbIop)
|
decoder_output += BasicConstructor.subst(dmbIop)
|
||||||
exec_output += PredOpExecute.subst(dmbIop)
|
exec_output += PredOpExecute.subst(dmbIop)
|
||||||
|
|
||||||
|
dbgCode = '''
|
||||||
|
'''
|
||||||
|
dbgIop = InstObjParams("dbg", "Dbg", "PredOp",
|
||||||
|
{"code": dbgCode,
|
||||||
|
"predicate_test": predicateTest})
|
||||||
|
header_output += BasicDeclare.subst(dbgIop)
|
||||||
|
decoder_output += BasicConstructor.subst(dbgIop)
|
||||||
|
exec_output += PredOpExecute.subst(dbgIop)
|
||||||
|
|
||||||
cpsCode = '''
|
cpsCode = '''
|
||||||
uint32_t mode = bits(imm, 4, 0);
|
uint32_t mode = bits(imm, 4, 0);
|
||||||
uint32_t f = bits(imm, 5);
|
uint32_t f = bits(imm, 5);
|
||||||
|
|
Loading…
Reference in a new issue