mtfsr x0; \
1:
-#define RVTEST_PASS_NOFP \
- RVTEST_FP_ENABLE \
- bnez a0, 2f; \
- RVTEST_PASS \
-2: \
-
#define RVTEST_VEC_ENABLE \
mfpcr a0, cr0; \
ori a0, a0, 4; \
mtfsr x0; \
1:
-#define RVTEST_PASS_NOFP \
- RVTEST_FP_ENABLE \
- bnez a0, 2f; \
- RVTEST_PASS \
-2: \
-
#define RVTEST_VEC_ENABLE \
mfpcr a0, cr0; \
ori a0, a0, 4; \
mtfsr x0; \
1:
-#define RVTEST_PASS_NOFP \
- RVTEST_FP_ENABLE \
- bnez a0, 2f; \
- RVTEST_PASS \
-2: \
-
#define RVTEST_VEC_ENABLE \
mfpcr a0, cr0; \
ori a0, a0, 4; \
#define RVTEST_PASS li a0, 1; syscall;
#define RVTEST_FAIL sll a0, x28, 1; 1:beqz a0, 1b; or a0, a0, 1; syscall;
-#define RVTEST_PASS_NOFP li a0, 1234; syscall;
-
//-----------------------------------------------------------------------
// Data Section Macro
//-----------------------------------------------------------------------
if (tf->cause == CAUSE_SYSCALL)
{
int n = tf->gpr[18];
- if (n == 1234) // TEST_PASS_NOFP
- {
- if (mfpcr(PCR_SR) & SR_EF)
- {
- tf->epc += 4;
- goto out;
- }
- n = 1;
- }
for (long i = 1; i < MAX_TEST_PAGES; i++)
evict(i*PGSIZE);