]> Joshua Wise's Git repositories - firearm.git/blobdiff - tests/testbench.c
DCache/ICache: Invalidate while filling, so if the fill is aborted, then at least...
[firearm.git] / tests / testbench.c
index ff9f96cb05ee84c2595560bf0b3e9fe3e42794e1..f8366b418301790034af872d82df7b9b8defe459 100644 (file)
@@ -42,7 +42,7 @@ struct tests {
 };
 
 extern int ldm_bonehead();
 };
 
 extern int ldm_bonehead();
-
+#ifndef X86
 __asm__(
 ".globl ldm_bonehead\n"
 "ldm_bonehead:;"
 __asm__(
 ".globl ldm_bonehead\n"
 "ldm_bonehead:;"
@@ -69,10 +69,14 @@ __asm__(
 "nop;"
 "nop;\n"
 );
 "nop;"
 "nop;\n"
 );
-
+#endif
 void ldm_tester()
 {
 void ldm_tester()
 {
+#ifdef X86
+       int x = 0x00880000;
+#else
        int x = ldm_bonehead();
        int x = ldm_bonehead();
+#endif
        if (x != 0x00880000)
        {
                puts("FAIL: result was ");
        if (x != 0x00880000)
        {
                puts("FAIL: result was ");
This page took 0.019994 seconds and 4 git commands to generate.