From 1a36f2689df5ed65f8bf650fdcffc4d2940bdae6 Mon Sep 17 00:00:00 2001 From: Charles Papon Date: Sat, 30 Mar 2019 11:24:29 +0100 Subject: [PATCH] #60 Fix software model. Forgot physical address for on RVC instruction --- src/test/cpp/regression/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/cpp/regression/main.cpp b/src/test/cpp/regression/main.cpp index 5355333..ca8d6cf 100644 --- a/src/test/cpp/regression/main.cpp +++ b/src/test/cpp/regression/main.cpp @@ -930,7 +930,7 @@ public: trap(0, 4, address); } else { if(v2p(address, &pAddr, READ)){ trap(0, 13, address); return; } - if(dRead(address, 4, &data)) { + if(dRead(pAddr, 4, &data)) { trap(0, 5, address); } else { rfWrite(i16_addr2, data); pcWrite(pc + 2);