aboutsummaryrefslogtreecommitdiff
path: root/src/ARM.cpp
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2019-07-12 03:43:45 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-06-16 11:53:10 +0200
commitf22521a43d8e3ea51493119f9f285cf265f21416 (patch)
treece502546edad7e727a3302f2806b76762499f1fa /src/ARM.cpp
parent83bd863361e19bc5456bbaaa3d0ec0df3c1731c0 (diff)
jit: LDM/STM finally(!) working + MUL, MLA and CLZ
Diffstat (limited to 'src/ARM.cpp')
-rw-r--r--src/ARM.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ARM.cpp b/src/ARM.cpp
index 3c2253c..baf8468 100644
--- a/src/ARM.cpp
+++ b/src/ARM.cpp
@@ -81,8 +81,15 @@ ARMv4::ARMv4() : ARM(1)
//
}
+namespace ARMJIT {extern int instructionPopularityARM[ARMInstrInfo::ak_Count];}
+
void ARM::Reset()
{
+ FILE* blabla = fopen("fhhg", "w");
+ for (int i = 0; i < ARMInstrInfo::ak_Count; i++)
+ fprintf(blabla, "%d -> %dx\n", i, ARMJIT::instructionPopularityARM[i]);
+ fclose(blabla);
+
Cycles = 0;
Halted = 0;