aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/gen-semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/igen/gen-semantics.c')
-rw-r--r--sim/igen/gen-semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/igen/gen-semantics.c b/sim/igen/gen-semantics.c
index 3acd6d8..2994f82 100644
--- a/sim/igen/gen-semantics.c
+++ b/sim/igen/gen-semantics.c
@@ -246,7 +246,7 @@ print_semantic_body (lf *file,
{
lf_printf (file, "\n");
lf_printf (file, "/* Architecture expects REG to be zero */\n");
- lf_printf (file, "GPR_SET(%d, 0);\n", options.gen.zero_reg_nr);
+ lf_printf (file, "GPR_CLEAR(%d);\n", options.gen.zero_reg_nr);
}
/* generate the code (or at least something */