1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-10 22:31:45 +00:00

tests/fpu: Test FPU unavailable interrupt following a load

This adds a load before a floating-point load which should generate a
floating-point unavailable interrupt, to test for the bug where
unavailability interrupts can get dropped while loadstore1 is
executing instructions.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
Paul Mackerras
2021-05-26 17:44:19 +10:00
parent 64e3ce7134
commit f40842d9b2
2 changed files with 3 additions and 1 deletions

View File

@@ -106,9 +106,11 @@ int fooiw;
int do_fp_op(long arg)
{
unsigned long tmp;
switch (arg) {
case 0:
asm("lfd 31,0(%0)" : : "b" (&foo));
asm("ld %0,0(%1); lfd 31,0(%1)" : "=&r" (tmp) : "b" (&foo));
break;
case 1:
asm("stfd 31,0(%0)" : : "b" (&foow) : "memory");

Binary file not shown.