remove gd files, simplify fakeiso (#1053)

* remove gd files, simplify fakeiso

* fix bug in decompiler mistakenly marking functions as asm
This commit is contained in:
water111
2022-01-04 23:36:39 -05:00
committed by GitHub
parent b84a04a14c
commit 474a8494d8
534 changed files with 132 additions and 3333 deletions
+2 -1
View File
@@ -88,7 +88,8 @@ void Function::analyze_prologue(const LinkedObjectFile& file) {
// storing s7 on the stack is done by interrupt handlers, which we probably don't want to
// support
if (instr.kind == InstructionKind::SD && instr.get_src(0).get_reg() == make_gpr(Reg::S7)) {
if (instr.kind == InstructionKind::SD && instr.get_src(0).get_reg() == make_gpr(Reg::S7) &&
instr.get_src(2).get_reg() == make_gpr(Reg::SP)) {
lg::warn(
"Function {} was flagged as asm due to this instruction: {}. Consider flagging as asm "
"in config!",