Commit cd17f36
committed
Fix REGS_SAVER_FUNC test util on ARM
REGS_SAVER_FUNC is meant to work even if the stack pointer is
misaligned, but the multi-register PUSH instructions crash if the stack
is misaligned, as per the ARM documentation. I guess the old(?) bundled
QEMU used by upstream doesn't implement this faithfully. Fix it by using
a series of single-register pushes instead.
Fixes the run_register_set_test test target on ARM.1 parent 78c721a commit cd17f36
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
404 | 407 | | |
405 | 408 | | |
406 | 409 | | |
407 | 410 | | |
408 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
409 | 420 | | |
410 | 421 | | |
411 | 422 | | |
| |||
0 commit comments