Commit 91e88f93 authored by Tristan Gingold's avatar Tristan Gingold

Run isa testsuite.

parent 2cf284ed
......@@ -121,11 +121,11 @@ ecall: ecall; \
#define RVTEST_PASS \
la sp, _fstack; la gp, _gp; jal rv_test_pass; \
la t0, 0x100004; sw t0, 0(t0); j ecall;
lui t0, %hi(0x100004); sw t0, %lo(0x100004)(t0); j ecall;
#define RVTEST_FAIL \
la sp, _fstack; la gp, _gp; mv a0, TESTNUM; jal rv_test_fail;\
la t0, 0x100004; sw t0, 0(t0); j ecall;
lui t0, %hi(0x100004); sw t0, %lo(0x100004)(t0); j ecall;
//-----------------------------------------------------------------------
// Data Section Macro
......
......@@ -249,7 +249,7 @@ test_ ## testnum: \
#define TEST_ST_OP( testnum, load_inst, store_inst, result, offset, base ) \
TEST_CASE( testnum, x3, result, \
la x1, base; \
lui x1, %hi(base); addi x1, x1, %lo(base) ; \
li x2, result; \
store_inst x2, offset(x1); \
load_inst x3, offset(x1); \
......@@ -286,9 +286,9 @@ test_ ## testnum: \
test_ ## testnum: \
li TESTNUM, testnum; \
li x4, 0; \
1: la x1, result; \
1: lui x1, %hi(result); addi x1, x1, %lo(result) ; \
TEST_INSERT_NOPS_ ## src1_nops \
la x2, base; \
lui x2, %hi(base); addi x2, x2, %lo(base) ; \
TEST_INSERT_NOPS_ ## src2_nops \
store_inst x1, offset(x2); \
load_inst x3, offset(x2); \
......@@ -302,9 +302,9 @@ test_ ## testnum: \
test_ ## testnum: \
li TESTNUM, testnum; \
li x4, 0; \
1: la x2, base; \
1: lui x2, %hi(base); addi x2, x2, %lo(base) ; \
TEST_INSERT_NOPS_ ## src1_nops \
la x1, result; \
lui x1, %hi(result); addi x1, x1, %lo(result) ; \
TEST_INSERT_NOPS_ ## src2_nops \
store_inst x1, offset(x2); \
load_inst x3, offset(x2); \
......
......@@ -139,17 +139,16 @@ module main;
.dm_ready_i(dm_ready),
// Debug
.dbg_force_i(0),
.dbg_force_i(1'b0),
.dbg_enabled_o(),
.dbg_insn_i(0),
.dbg_insn_i(32'h0),
.dbg_insn_set_i(1'b0),
.dbg_insn_ready_o(),
// Debug mailboxes
.dbg_mbxi_data_i(32'h0),
.dbg_mbxi_valid_i(1'b0),
.dbg_mbxo_data_o(),
.dbg_mbxo_valid_o(),
.dbg_mbxo_read_i(1'b0)
// Debug mailbox
.dbg_mbx_data_i(0),
.dbg_mbx_write_i(1'b0),
.dbg_mbx_data_o()
);
always #5ns clk <= ~clk;
......
......@@ -123,15 +123,13 @@ module main;
.dbg_force_i(1'b0),
.dbg_enabled_o(),
.dbg_insn_i(32'h0),
.dbg_insn_set_i(1'b0),
.dbg_insn_ready_o(),
// Debug mailboxes
.dbg_mbxi_data_i(0),
.dbg_mbxi_write_i(1'b0),
.dbg_mbxi_full_o(),
.dbg_mbxo_data_o(),
.dbg_mbxo_full_o(),
.dbg_mbxo_read_i(1'b0)
// Debug mailbox
.dbg_mbx_data_i(0),
.dbg_mbx_write_i(1'b0),
.dbg_mbx_data_o()
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment