all repos — mgba @ f39ab5b35372ed57299ee65d5fb7c20830dabfb8

mGBA Game Boy Advance Emulator

ARM, LR35902: Const correctness
Vicki Pfau vi@endrift.com
Wed, 08 May 2019 11:22:10 -0700
commit

f39ab5b35372ed57299ee65d5fb7c20830dabfb8

parent

e991b3092675b29c0f9f0ac77278e4a9e22faca2

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M include/mgba/internal/arm/arm.hinclude/mgba/internal/arm/arm.h

@@ -124,7 +124,7 @@ int* cycleCounter);

uint32_t (*storeMultiple)(struct ARMCore*, uint32_t baseAddress, int mask, enum LSMDirection direction, int* cycleCounter); - uint32_t* activeRegion; + const uint32_t* activeRegion; uint32_t activeMask; uint32_t activeSeqCycles32; uint32_t activeSeqCycles16;
M include/mgba/internal/lr35902/lr35902.hinclude/mgba/internal/lr35902/lr35902.h

@@ -56,7 +56,7 @@ void (*store8)(struct LR35902Core*, uint16_t address, int8_t value);

int (*currentSegment)(struct LR35902Core*, uint16_t address); - uint8_t* activeRegion; + const uint8_t* activeRegion; uint16_t activeMask; uint16_t activeRegionEnd; void (*setActiveRegion)(struct LR35902Core*, uint16_t address);