mirror of https://github.com/mgba-emu/mgba.git
All: Fix instruction tables getting zeroed when linking sometimes
This commit is contained in:
parent
b4460b98e2
commit
f2829eef01
1
CHANGES
1
CHANGES
|
@ -17,6 +17,7 @@ Bugfixes:
|
||||||
- Util: Use closesocket on Windows
|
- Util: Use closesocket on Windows
|
||||||
- GBA Memory: Fix executing code from OBJ region of VRAM
|
- GBA Memory: Fix executing code from OBJ region of VRAM
|
||||||
- Util: Fix socket bind addresses
|
- Util: Fix socket bind addresses
|
||||||
|
- All: Fix instruction tables getting zeroed when linking sometimes
|
||||||
Misc:
|
Misc:
|
||||||
- GBA: Slightly optimize GBAProcessEvents
|
- GBA: Slightly optimize GBAProcessEvents
|
||||||
- Qt: Add preset for DualShock 4
|
- Qt: Add preset for DualShock 4
|
||||||
|
|
|
@ -169,7 +169,6 @@ list(APPEND OS_LIB ${M_LIBRARY})
|
||||||
if(APPLE OR CMAKE_C_COMPILER_ID STREQUAL "GNU" AND BUILD_LTO)
|
if(APPLE OR CMAKE_C_COMPILER_ID STREQUAL "GNU" AND BUILD_LTO)
|
||||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -flto")
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -flto")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto")
|
||||||
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/arm/isa-arm.c ${CMAKE_SOURCE_DIR}/src/arm/isa-thumb.c PROPERTIES COMPILE_FLAGS -fno-lto)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_BBB OR BUILD_RASPI OR BUILD_PANDORA)
|
if(BUILD_BBB OR BUILD_RASPI OR BUILD_PANDORA)
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
struct ARMCore;
|
struct ARMCore;
|
||||||
|
|
||||||
typedef void (*ARMInstruction)(struct ARMCore*, uint32_t opcode);
|
typedef void (*ARMInstruction)(struct ARMCore*, uint32_t opcode);
|
||||||
const ARMInstruction _armTable[0x1000];
|
extern const ARMInstruction _armTable[0x1000];
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
struct ARMCore;
|
struct ARMCore;
|
||||||
|
|
||||||
typedef void (*ThumbInstruction)(struct ARMCore*, uint16_t opcode);
|
typedef void (*ThumbInstruction)(struct ARMCore*, uint16_t opcode);
|
||||||
const ThumbInstruction _thumbTable[0x400];
|
extern const ThumbInstruction _thumbTable[0x400];
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue