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:
@@ -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.
Reference in New Issue
Block a user