8cc7955fc9e5c1873320260aba81044cfc352817
1 #ifndef _ENV_PHYSICAL_SINGLE_CORE_H
2 #define _ENV_PHYSICAL_SINGLE_CORE_H
5 #include "../hwacha_xcpt.h"
7 //-----------------------------------------------------------------------
9 //-----------------------------------------------------------------------
11 #define RVTEST_RV64U \
15 #define RVTEST_RV64UF \
20 #define RVTEST_RV64UV \
26 #define RVTEST_RV32U \
31 #define RVTEST_RV32UF \
37 #define RVTEST_RV32UV \
44 #define RVTEST_RV64S \
48 #define RVTEST_32_ENABLE \
49 clearpcr status, SR_S64 \
51 #define RVTEST_FP_ENABLE \
52 setpcr status, SR_EF; \
59 #define RVTEST_VEC_ENABLE \
60 setpcr status, SR_EA; \
67 #define RISCV_MULTICORE_DISABLE \
68 mfpcr a0, hartid; 1: bnez a0, 1b; \
72 #define RVTEST_CODE_BEGIN \
77 RISCV_MULTICORE_DISABLE; \
81 //-----------------------------------------------------------------------
83 //-----------------------------------------------------------------------
85 #define RVTEST_CODE_END \
87 //-----------------------------------------------------------------------
89 //-----------------------------------------------------------------------
105 //-----------------------------------------------------------------------
106 // Data Section Macro
107 //-----------------------------------------------------------------------
109 #define RVTEST_DATA_BEGIN EXTRA_DATA
110 #define RVTEST_DATA_END
114 //#define RVTEST_DATA_BEGIN .align 4; .global begin_signature; begin_signature:
115 //#define RVTEST_DATA_END .align 4; .global end_signature; end_signature: