2016-07-04 14:37:50 +01:00
|
|
|
/* This file is part of the dynarmic project.
|
|
|
|
* Copyright (c) 2016 MerryMage
|
|
|
|
* This software may be used and distributed according to the terms of the GNU
|
|
|
|
* General Public License version 2 or any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "frontend/arm_types.h"
|
|
|
|
#include "frontend/ir/ir.h"
|
2016-07-12 09:04:47 +01:00
|
|
|
#include "frontend/ir_emitter.h"
|
2016-07-04 14:37:50 +01:00
|
|
|
#include "frontend/translate.h"
|
|
|
|
|
|
|
|
namespace Dynarmic {
|
|
|
|
namespace Arm {
|
|
|
|
|
|
|
|
IR::Block TranslateArm(LocationDescriptor descriptor, MemoryRead32FuncType memory_read_32) {
|
2016-07-12 09:04:47 +01:00
|
|
|
// Just interpret everything.
|
|
|
|
IREmitter ir{descriptor};
|
|
|
|
ir.SetTerm(IR::Term::Interpret{ir.current_location});
|
|
|
|
ir.block.cycle_count++;
|
|
|
|
return ir.block;
|
2016-07-04 14:37:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Arm
|
|
|
|
} // namespace Dynarmic
|