frontend/TranslateArm: Just interpret all ARM instructions

This commit is contained in:
MerryMage 2016-07-12 09:04:47 +01:00
parent 1410221b47
commit f85b86486b

View file

@ -7,14 +7,18 @@
#include "common/assert.h" #include "common/assert.h"
#include "frontend/arm_types.h" #include "frontend/arm_types.h"
#include "frontend/ir/ir.h" #include "frontend/ir/ir.h"
#include "frontend/ir_emitter.h"
#include "frontend/translate.h" #include "frontend/translate.h"
namespace Dynarmic { namespace Dynarmic {
namespace Arm { namespace Arm {
IR::Block TranslateArm(LocationDescriptor descriptor, MemoryRead32FuncType memory_read_32) { IR::Block TranslateArm(LocationDescriptor descriptor, MemoryRead32FuncType memory_read_32) {
ASSERT_MSG(0, "Unimplemented"); // Just interpret everything.
return IR::Block(descriptor); IREmitter ir{descriptor};
ir.SetTerm(IR::Term::Interpret{ir.current_location});
ir.block.cycle_count++;
return ir.block;
} }
} // namespace Arm } // namespace Arm