mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
aarch64: fix ASSERT_EQ_REG tests on gem5
Was doing an 8-byte aligned store, which gem5 dislikes. But the ARMARM says bad things may happen there, notably a signal: "D1.8.2 SP alignment checking" so gem5 is not really too wrong, QEMU just happens to work by chance.
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
;
|
||||
|
||||
#define ASSERT_EQ_REG(reg1, reg2) \
|
||||
str reg2, [sp, -8]!; \
|
||||
str reg2, [sp, -16]!; \
|
||||
mov x0, reg1; \
|
||||
ldr x1, [sp], 8; \
|
||||
ldr x1, [sp], 16; \
|
||||
ASSERT_EQ_DO(64); \
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user