From 15dee5d56138cdd48dc3f6b8c8e1d610b0131aa1 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 23 Jul 2003 21:14:54 +0000 Subject: [PATCH] 2003-06-27 Michael Snyder * gencode.c (gensim_caselist): The movy instructions use registers R6 and R7 (not R4 and R5 like the movx insns). --- sim/sh/ChangeLog | 5 +++++ sim/sh/gencode.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog index d069a813a2b..0cd05f52f69 100644 --- a/sim/sh/ChangeLog +++ b/sim/sh/ChangeLog @@ -2,6 +2,11 @@ * gencode.c (movs): Fix a couple of text transpositions. +2003-06-27 Michael Snyder + + * gencode.c (gensim_caselist): The movy instructions use + registers R6 and R7 (not R4 and R5 like the movx insns). + 2003-06-27 Michael Snyder * gencode.c (op movsxy_tab): Fix up some copy/paste errors diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index a0f8b59d0d9..e5dee8f987b 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -2159,7 +2159,7 @@ gensim_caselist (p) s += 2; break; case 'y': - printf (" int n = ((iword >> 8) & 1) + 4;\n"); + printf (" int n = ((iword >> 8) & 1) + 6;\n"); needn = 1; s += 2; break; -- 2.30.2