From cbda836a96a43c2bc0fd37800e0bfb294470ba93 Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Sat, 25 Jul 2015 20:33:53 +0200 Subject: [PATCH] she/core: Less stupid register swap functions --- core/hw/sh4/sh4_core_regs.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/hw/sh4/sh4_core_regs.cpp b/core/hw/sh4/sh4_core_regs.cpp index b4b00b543..069dcf6ea 100644 --- a/core/hw/sh4/sh4_core_regs.cpp +++ b/core/hw/sh4/sh4_core_regs.cpp @@ -13,23 +13,23 @@ u8* sh4_dyna_rcb; INLINE void ChangeGPR() { - u32 temp[8]; + u32 temp; for (int i=0;i<8;i++) { - temp[i]=r[i]; + temp=r[i]; r[i]=r_bank[i]; - r_bank[i]=temp[i]; + r_bank[i]=temp; } } INLINE void ChangeFP() { - u32 temp[16]; + u32 temp; for (int i=0;i<16;i++) { - temp[i]=fr_hex[i]; + temp=fr_hex[i]; fr_hex[i]=xf_hex[i]; - xf_hex[i]=temp[i]; + xf_hex[i]=temp; } }