]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: harmless restructuring of get_n_addr
authorFrode Solheim <frode@fs-uae.net>
Mon, 7 Sep 2015 19:21:32 +0000 (21:21 +0200)
committerFrode Solheim <frode@fs-uae.net>
Thu, 17 Sep 2015 17:18:09 +0000 (19:18 +0200)
jit/compemu_support.cpp

index 3b8cf90dd64b2d9688ca292c44074fee7b69b6ae..47ad59ed4ed6ea5354af26957c1dcb250c23d91b 100644 (file)
@@ -3055,8 +3055,14 @@ void readlong(int address, int dest, int tmp)
                readmem_real(address,dest,4,tmp);
 }
 
-static inline void get_n_addr_real(int address, int dest, int tmp)
+void get_n_addr(int address, int dest, int tmp)
 {
+       if (special_mem || distrust_addr()) {
+               /* This one might appear a bit odd... */
+               readmem(address,dest,24,4,tmp);
+               return;
+       }
+
        // a is the register containing the virtual address
        // after the offset had been fetched
        int a=tmp;
@@ -3091,20 +3097,6 @@ static inline void get_n_addr_real(int address, int dest, int tmp)
        forget_about(tmp);
 }
 
-/* This one might appear a bit odd... */
-static inline void get_n_addr_old(int address, int dest, int tmp)
-{
-       readmem(address,dest,24,4,tmp);
-}
-
-void get_n_addr(int address, int dest, int tmp)
-{
-       if (special_mem || distrust_addr())
-               get_n_addr_old(address,dest,tmp);
-       else
-               get_n_addr_real(address,dest,tmp);
-}
-
 void get_n_addr_jmp(int address, int dest, int tmp)
 {
 #if 0