summaryrefslogtreecommitdiff
path: root/mips_new_tc
diff options
context:
space:
mode:
authorThomas Bauereiss2017-09-29 16:18:37 +0100
committerThomas Bauereiss2017-09-29 16:18:37 +0100
commit56aedab536c905d3423e488ec9110b738d03bbf7 (patch)
tree4d6a8d384d795d3c4118a088cbe23a5f31fd0aaf /mips_new_tc
parent4e7a568bb57337d41dda893044ed84b66e62752f (diff)
Add MIPS->Isabelle target to Makefile
Diffstat (limited to 'mips_new_tc')
-rw-r--r--mips_new_tc/mips_regfp.sail16
1 files changed, 8 insertions, 8 deletions
diff --git a/mips_new_tc/mips_regfp.sail b/mips_new_tc/mips_regfp.sail
index 36750583..4980aa2c 100644
--- a/mips_new_tc/mips_regfp.sail
+++ b/mips_new_tc/mips_regfp.sail
@@ -41,13 +41,13 @@ let (vector <0, 32, inc, string >) GPRs =
let CIA_fp = RFull("CIA")
let NIA_fp = RFull("NIA")
-function (regfps,regfps,regfps,niafps,diafp,instruction_kind) initial_analysis (instr) = {
- iR := [|| ||];
- oR := [|| ||];
- aR := [|| ||];
- ik := IK_simple;
- Nias := [|| ||];
- Dia := DIAFP_none;
+function (regfps,regfps,regfps,niafps,diafp,instruction_kind) initial_analysis ((ast) instr) = {
+ (regfps) iR := [|| ||];
+ (regfps) oR := [|| ||];
+ (regfps) aR := [|| ||];
+ (instruction_kind) ik := IK_simple;
+ (niafps) Nias := [|| ||];
+ (diafp) Dia := DIAFP_none;
switch instr {
case (DADDIU (rs, rt, imm)) -> {
@@ -65,7 +65,7 @@ function (regfps,regfps,regfps,niafps,diafp,instruction_kind) initial_analysis (
}
case (DADD (rs, rt, rd)) -> {
if rs == 0 then () else iR := RFull(GPRs[rs]) :: iR;
- if rt == 0 then () else oR := RFull(GPRs[rt]) :: oR;
+ if rd == 0 then () else oR := RFull(GPRs[rd]) :: oR;
}
case (ADD(rs, rt, rd)) -> {
if rs == 0 then () else iR := RFull(GPRs[rs]) :: iR;