[arch][m68k] make sure move %sp, <reg> doesn't use the 'a' registers

This particular instruction format doesn't take plain a registers, but
takes d and the rest of the <ea> formats.
This commit is contained in:
Travis Geiselbrecht
2025-05-06 23:26:10 -07:00
parent 0ac0911404
commit e31b1ee768

View File

@@ -24,7 +24,7 @@ static inline void arch_disable_ints(void) {
static inline bool arch_ints_disabled(void) {
uint16_t sr;
asm volatile("move %%sr, %0" : "=r"(sr) :: "memory");
asm volatile("move %%sr, %0" : "=dm"(sr) :: "memory");
// if the IPM is != 0, consider interrupts disabled
return (sr & M68K_SR_IPM_MASK);