This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to d10v sim


The following is a patch that has been floating around for
some time. OK to check in?

2001-04-27 Jason Eckhardt <jle@cygnus.com>

	* simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
       (OP_4401): Output "mvf0t" instead of "mf0t".
       (OP_460B): Do not output a flag register.
       (OP_4609): Do not output a flag register.

Index: sim/d10v/simops.c
===================================================================
RCS file: /cvs/cvsfiles/devo/sim/d10v/simops.c,v
retrieving revision 1.84
diff -d -c -p -r1.84 simops.c
*** simops.c	2000/03/02 09:11:40	1.84
--- simops.c	2001/12/11 14:49:28
*************** void
*** 1972,1978 ****
  OP_4400 ()
  {
    int16 tmp;
!   trace_input ("mf0f", OP_REG_OUTPUT, OP_REG, OP_VOID);
    if (PSW_F0 == 0)
      {
        tmp = GPR (OP[1]);
--- 1972,1978 ----
  OP_4400 ()
  {
    int16 tmp;
!   trace_input ("mvf0f", OP_REG_OUTPUT, OP_REG, OP_VOID);
    if (PSW_F0 == 0)
      {
        tmp = GPR (OP[1]);
*************** void
*** 1988,1994 ****
  OP_4401 ()
  {
    int16 tmp;
!   trace_input ("mf0t", OP_REG_OUTPUT, OP_REG, OP_VOID);
    if (PSW_F0)
      {
        tmp = GPR (OP[1]);
--- 1988,1994 ----
  OP_4401 ()
  {
    int16 tmp;
!   trace_input ("mvf0t", OP_REG_OUTPUT, OP_REG, OP_VOID);
    if (PSW_F0)
      {
        tmp = GPR (OP[1]);
*************** void
*** 2604,2610 ****
  OP_460B ()
  {
    int16 tmp;
!   trace_input ("slx", OP_REG, OP_FLAG, OP_VOID);
    tmp = ((GPR (OP[0]) << 1) | PSW_F0);
    SET_GPR (OP[0], tmp);
    trace_output_16 (tmp);
--- 2604,2610 ----
  OP_460B ()
  {
    int16 tmp;
!   trace_input ("slx", OP_REG, OP_VOID, OP_VOID);
    tmp = ((GPR (OP[0]) << 1) | PSW_F0);
    SET_GPR (OP[0], tmp);
    trace_output_16 (tmp);
*************** void
*** 2726,2732 ****
  OP_4609 ()
  {
    uint16 tmp;
!   trace_input ("srx", OP_REG, OP_FLAG, OP_VOID);
    tmp = PSW_F0 << 15;
    tmp = ((GPR (OP[0]) >> 1) | tmp);
    SET_GPR (OP[0], tmp);
--- 2726,2732 ----
  OP_4609 ()
  {
    uint16 tmp;
!   trace_input ("srx", OP_REG, OP_VOID, OP_VOID);
    tmp = PSW_F0 << 15;
    tmp = ((GPR (OP[0]) >> 1) | tmp);
    SET_GPR (OP[0], tmp);
Alan Matsuoka
GCC Engineering
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]