diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f435801 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,11 @@ +name: test +on: push +jobs: + am-test: + name: am-test + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@master + - name: test + run: RUST_TEST_THREADS=1 cargo test --test riscv-tests \ No newline at end of file diff --git a/src/cpu/csr.rs b/src/cpu/csr.rs deleted file mode 100644 index 9589c19..0000000 --- a/src/cpu/csr.rs +++ /dev/null @@ -1,11 +0,0 @@ -pub enum CSR { - MIE = 0x304, - MTVEC = 0x305, - MSCRATCH = 0x340, - MEPC = 0x341, - MCAUSE = 0x342, - MTVAL = 0x343, - MIP = 0x344, - MTINST = 0x34a, - MTVAL2 = 0x34b, -}