qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 04/17] target-openrisc: Keep SR_F in a separate


From: Bastian Koppelmann
Subject: Re: [Qemu-devel] [PATCH 04/17] target-openrisc: Keep SR_F in a separate variable
Date: Thu, 3 Sep 2015 17:09:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0



On 09/03/2015 02:17 AM, Richard Henderson wrote:
This avoids having to keep merging and extracting the flag from SR.

Signed-off-by: Richard Henderson <address@hidden>
---
  target-openrisc/cpu.h              | 15 +++++-
  target-openrisc/gdbstub.c          |  4 +-
  target-openrisc/interrupt.c        |  2 +-
  target-openrisc/interrupt_helper.c |  2 +-
  target-openrisc/sys_helper.c       |  5 +-
  target-openrisc/translate.c        | 96 +++++++++++++++-----------------------
  6 files changed, 56 insertions(+), 68 deletions(-)

diff --git a/target-openrisc/cpu.h b/target-openrisc/cpu.h
index 36c4f20..e91f2a9 100644
--- a/target-openrisc/cpu.h
+++ b/target-openrisc/cpu.h
@@ -288,7 +288,8 @@ typedef struct CPUOpenRISCState {
      target_ulong epcr;        /* Exception PC register */
      target_ulong eear;        /* Exception EA register */
- uint32_t sr; /* Supervisor register */
+    target_ulong sr_f;        /* the SR_F bit */

A comment that states the expected value of sr_f would be nice.

Other then that,
Reviewed-by: Bastian Koppelmann <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]