mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Fix not compiling on 64 bit Linux PPC (thanks random_vegetable)
This commit is contained in:
parent
c7a9621fd0
commit
e6d35ea3ab
16
src/Logger.c
16
src/Logger.c
@ -512,12 +512,18 @@ static void PrintRegisters(cc_string* str, void* ctx) {
|
||||
#elif defined __sparc__
|
||||
#define REG_GET(ign, reg) &r.gregs[REG_##reg]
|
||||
Dump_SPARC()
|
||||
#elif defined __PPC__ && __WORDSIZE == 32
|
||||
#define REG_GNUM(num) &r.gregs[num]
|
||||
#define REG_GET_PC() &r.gregs[32]
|
||||
#define REG_GET_LR() &r.gregs[35]
|
||||
#define REG_GET_CTR() &r.gregs[34]
|
||||
Dump_PPC()
|
||||
#elif defined __PPC__
|
||||
#define REG_GNUM(num) &r.gregs[num]
|
||||
#define REG_GET_PC() &r.gregs[32]
|
||||
#define REG_GET_LR() &r.gregs[35]
|
||||
#define REG_GET_CTR() &r.gregs[34]
|
||||
Dump_PPC()
|
||||
#define REG_GNUM(num) &r.gp_regs[num]
|
||||
#define REG_GET_PC() &r.gp_regs[32]
|
||||
#define REG_GET_LR() &r.gp_regs[35]
|
||||
#define REG_GET_CTR() &r.gp_regs[34]
|
||||
Dump_PPC()
|
||||
#elif defined __riscv
|
||||
#define REG_GNUM(num) &r.__gregs[num]
|
||||
#define REG_GET_PC() &r.__gregs[REG_PC]
|
||||
|
Loading…
x
Reference in New Issue
Block a user