fix aica arm test
This commit is contained in:
parent
75f7b92342
commit
3bd34e1d9b
|
@ -5,7 +5,6 @@
|
||||||
#include "hw/aica/aica_if.h"
|
#include "hw/aica/aica_if.h"
|
||||||
#include "hw/arm7/arm7_rec.h"
|
#include "hw/arm7/arm7_rec.h"
|
||||||
|
|
||||||
extern reg_pair arm_Reg[RN_ARM_REG_COUNT];
|
|
||||||
extern bool Arm7Enabled;
|
extern bool Arm7Enabled;
|
||||||
extern "C" void CompileCode();
|
extern "C" void CompileCode();
|
||||||
|
|
||||||
|
@ -18,6 +17,9 @@ static const u32 C_FLAG = 1 << 29;
|
||||||
static const u32 V_FLAG = 1 << 28;
|
static const u32 V_FLAG = 1 << 28;
|
||||||
static const u32 NZCV_MASK = N_FLAG | Z_FLAG | C_FLAG | V_FLAG;
|
static const u32 NZCV_MASK = N_FLAG | Z_FLAG | C_FLAG | V_FLAG;
|
||||||
|
|
||||||
|
extern "C" void DYNACALL arm_mainloop(u32 cycl, void* regs, void* entrypoints);
|
||||||
|
extern void *EntryPoints[];
|
||||||
|
|
||||||
class AicaArmTest : public ::testing::Test {
|
class AicaArmTest : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
|
@ -47,7 +49,7 @@ protected:
|
||||||
{
|
{
|
||||||
arm_Reg[R15_ARM_NEXT].I = 0x1000;
|
arm_Reg[R15_ARM_NEXT].I = 0x1000;
|
||||||
arm_Reg[CYCL_CNT].I = 0;
|
arm_Reg[CYCL_CNT].I = 0;
|
||||||
arm_Run(1);
|
arm_mainloop(1, arm_Reg, EntryPoints);
|
||||||
}
|
}
|
||||||
void ResetNZCV()
|
void ResetNZCV()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue