#include "config.h"
+#include <inttypes.h>
#include <signal.h>
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"
+#include "run-sim.h"
#include "d10v_sim.h"
#include "gdb/sim-d10v.h"
struct hash_entry hash_table[MAX_HASH+1];
INLINE static long
-hash(insn, format)
- long insn;
- int format;
+hash (long insn, int format)
{
if (format & LONG_OPCODE)
return ((insn & 0x3F000000) >> 24);
}
INLINE static struct hash_entry *
-lookup_hash (ins, size)
- uint32 ins;
- int size;
+lookup_hash (uint32 ins, int size)
{
struct hash_entry *h;
}
bfd_vma
-decode_pc ()
+decode_pc (void)
{
asection *s;
if (!init_text_p && prog_bfd != NULL)
}
static void
-do_long (ins)
- uint32 ins;
+do_long (uint32 ins)
{
struct hash_entry *h;
#ifdef DEBUG
}
static void
-do_2_short (ins1, ins2, leftright)
- uint16 ins1, ins2;
- enum _leftright leftright;
+do_2_short (uint16 ins1, uint16 ins2, enum _leftright leftright)
{
struct hash_entry *h;
enum _ins_type first, second;
}
static void
-do_parallel (ins1, ins2)
- uint16 ins1, ins2;
+do_parallel (uint16 ins1, uint16 ins2)
{
struct hash_entry *h1, *h2;
#ifdef DEBUG
}
static char *
-add_commas(buf, sizeof_buf, value)
- char *buf;
- int sizeof_buf;
- unsigned long value;
+add_commas (char *buf, int sizeof_buf, unsigned long value)
{
int comma = 3;
char *endbuf = buf + sizeof_buf - 1;
}
void
-sim_size (power)
- int power;
-
+sim_size (int power)
{
int i;
for (i = 0; i < IMEM_SEGMENTS; i++)
int
-sim_write (sd, addr, buffer, size)
- SIM_DESC sd;
- SIM_ADDR addr;
- const unsigned char *buffer;
- int size;
+sim_write (SIM_DESC sd, SIM_ADDR addr, const unsigned char *buffer, int size)
{
/* FIXME: this should be performing a virtual transfer */
return xfer_mem( addr, buffer, size, 1);
}
int
-sim_read (sd, addr, buffer, size)
- SIM_DESC sd;
- SIM_ADDR addr;
- unsigned char *buffer;
- int size;
+sim_read (SIM_DESC sd, SIM_ADDR addr, unsigned char *buffer, int size)
{
/* FIXME: this should be performing a virtual transfer */
return xfer_mem( addr, buffer, size, 0);
SIM_DESC
-sim_open (kind, callback, abfd, argv)
- SIM_OPEN_KIND kind;
- host_callback *callback;
- struct bfd *abfd;
- char **argv;
+sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, char **argv)
{
struct simops *s;
struct hash_entry *h;
void
-sim_close (sd, quitting)
- SIM_DESC sd;
- int quitting;
+sim_close (SIM_DESC sd, int quitting)
{
if (prog_bfd != NULL && prog_bfd_was_opened_p)
{
}
void
-sim_set_profile (n)
- int n;
+sim_set_profile (int n)
{
(*d10v_callback->printf_filtered) (d10v_callback, "sim_set_profile %d\n",n);
}
void
-sim_set_profile_size (n)
- int n;
+sim_set_profile_size (int n)
{
(*d10v_callback->printf_filtered) (d10v_callback, "sim_set_profile_size %d\n",n);
}
static int stop_simulator = 0;
int
-sim_stop (sd)
- SIM_DESC sd;
+sim_stop (SIM_DESC sd)
{
stop_simulator = 1;
return 1;
/* Run (or resume) the program. */
void
-sim_resume (sd, step, siggnal)
- SIM_DESC sd;
- int step, siggnal;
+sim_resume (SIM_DESC sd, int step, int siggnal)
{
uint32 inst;
uint8 *iaddr;
}
void
-sim_info (sd, verbose)
- SIM_DESC sd;
- int verbose;
+sim_info (SIM_DESC sd, int verbose)
{
char buf1[40];
char buf2[40];
}
SIM_RC
-sim_create_inferior (sd, abfd, argv, env)
- SIM_DESC sd;
- struct bfd *abfd;
- char **argv;
- char **env;
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
{
bfd_vma start_address;
/* reset all state information */
- memset (&State.regs, 0, (int)&State.mem - (int)&State.regs);
+ memset (&State.regs, 0, (uintptr_t)&State.mem - (uintptr_t)&State.regs);
/* There was a hack here to copy the values of argc and argv into r0
and r1. The values were also saved into some high memory that
void
-sim_set_callbacks (p)
- host_callback *p;
+sim_set_callbacks (host_callback *p)
{
d10v_callback = p;
}
}
void
-sim_stop_reason (sd, reason, sigrc)
- SIM_DESC sd;
- enum sim_stop *reason;
- int *sigrc;
+sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
{
/* (*d10v_callback->printf_filtered) (d10v_callback, "sim_stop_reason: PC=0x%x\n",PC<<2); */
}
int
-sim_fetch_register (sd, rn, memory, length)
- SIM_DESC sd;
- int rn;
- unsigned char *memory;
- int length;
+sim_fetch_register (SIM_DESC sd, int rn, unsigned char *memory, int length)
{
int size;
switch ((enum sim_d10v_regs) rn)
}
int
-sim_store_register (sd, rn, memory, length)
- SIM_DESC sd;
- int rn;
- unsigned char *memory;
- int length;
+sim_store_register (SIM_DESC sd, int rn, unsigned char *memory, int length)
{
int size;
switch ((enum sim_d10v_regs) rn)
void
-sim_do_command (sd, cmd)
- SIM_DESC sd;
- const char *cmd;
+sim_do_command (SIM_DESC sd, const char *cmd)
{
(*d10v_callback->printf_filtered) (d10v_callback, "sim_do_command: %s\n",cmd);
}
SIM_RC
-sim_load (sd, prog, abfd, from_tty)
- SIM_DESC sd;
- const char *prog;
- bfd *abfd;
- int from_tty;
+sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty)
{
extern bfd *sim_load_file (); /* ??? Don't know where this should live. */
#include "simops.h"
#include "targ-vals.h"
-extern char *strrchr ();
-
enum op_types {
OP_VOID,
OP_REG,
}
#ifdef DEBUG
-static void trace_input_func (char *name,
+static void trace_input_func (const char *name,
enum op_types in1,
enum op_types in2,
enum op_types in3);
#endif
static void
-trace_input_func (name, in1, in2, in3)
- char *name;
- enum op_types in1;
- enum op_types in2;
- enum op_types in3;
+trace_input_func (const char *name, enum op_types in1, enum op_types in2, enum op_types in3)
{
char *comma;
enum op_types in[3];
}
static void
-trace_output_void ()
+trace_output_void (void)
{
if ((d10v_debug & (DEBUG_TRACE | DEBUG_VALUES)) == (DEBUG_TRACE | DEBUG_VALUES))
{
}
static void
-trace_output_flag ()
+trace_output_flag (void)
{
if ((d10v_debug & (DEBUG_TRACE | DEBUG_VALUES)) == (DEBUG_TRACE | DEBUG_VALUES))
{
/* abs */
void
-OP_4607 ()
+OP_4607 (void)
{
int16 tmp;
trace_input ("abs", OP_REG, OP_VOID, OP_VOID);
/* abs */
void
-OP_5607 ()
+OP_5607 (void)
{
int64 tmp;
trace_input ("abs", OP_ACCUM, OP_VOID, OP_VOID);
/* add */
void
-OP_200 ()
+OP_200 (void)
{
uint16 a = GPR (OP[0]);
uint16 b = GPR (OP[1]);
/* add */
void
-OP_1201 ()
+OP_1201 (void)
{
int64 tmp;
tmp = SEXT40(ACC (OP[0])) + (SEXT16 (GPR (OP[1])) << 16 | GPR (OP[1] + 1));
/* add */
void
-OP_1203 ()
+OP_1203 (void)
{
int64 tmp;
tmp = SEXT40(ACC (OP[0])) + SEXT40(ACC (OP[1]));
/* add2w */
void
-OP_1200 ()
+OP_1200 (void)
{
uint32 tmp;
uint32 a = (GPR (OP[0])) << 16 | GPR (OP[0] + 1);
/* add3 */
void
-OP_1000000 ()
+OP_1000000 (void)
{
uint16 a = GPR (OP[1]);
uint16 b = OP[2];
/* addac3 */
void
-OP_17000200 ()
+OP_17000200 (void)
{
int64 tmp;
tmp = SEXT40(ACC (OP[2])) + SEXT40 ((GPR (OP[1]) << 16) | GPR (OP[1] + 1));
/* addac3 */
void
-OP_17000202 ()
+OP_17000202 (void)
{
int64 tmp;
tmp = SEXT40(ACC (OP[1])) + SEXT40(ACC (OP[2]));
/* addac3s */
void
-OP_17001200 ()
+OP_17001200 (void)
{
int64 tmp;
SET_PSW_F1 (PSW_F0);
/* addac3s */
void
-OP_17001202 ()
+OP_17001202 (void)
{
int64 tmp;
SET_PSW_F1 (PSW_F0);
/* addi */
void
-OP_201 ()
+OP_201 (void)
{
uint16 a = GPR (OP[0]);
uint16 b;
/* and */
void
-OP_C00 ()
+OP_C00 (void)
{
uint16 tmp = GPR (OP[0]) & GPR (OP[1]);
trace_input ("and", OP_REG, OP_REG, OP_VOID);
/* and3 */
void
-OP_6000000 ()
+OP_6000000 (void)
{
uint16 tmp = GPR (OP[1]) & OP[2];
trace_input ("and3", OP_REG_OUTPUT, OP_REG, OP_CONSTANT16);
/* bclri */
void
-OP_C01 ()
+OP_C01 (void)
{
int16 tmp;
trace_input ("bclri", OP_REG, OP_CONSTANT16, OP_VOID);
/* bl.s */
void
-OP_4900 ()
+OP_4900 (void)
{
trace_input ("bl.s", OP_CONSTANT8, OP_R0, OP_R1);
SET_GPR (13, PC + 1);
/* bl.l */
void
-OP_24800000 ()
+OP_24800000 (void)
{
trace_input ("bl.l", OP_CONSTANT16, OP_R0, OP_R1);
SET_GPR (13, (PC + 1));
/* bnoti */
void
-OP_A01 ()
+OP_A01 (void)
{
int16 tmp;
trace_input ("bnoti", OP_REG, OP_CONSTANT16, OP_VOID);
/* bra.s */
void
-OP_4800 ()
+OP_4800 (void)
{
trace_input ("bra.s", OP_CONSTANT8, OP_VOID, OP_VOID);
JMP (PC + SEXT8 (OP[0]));
/* bra.l */
void
-OP_24000000 ()
+OP_24000000 (void)
{
trace_input ("bra.l", OP_CONSTANT16, OP_VOID, OP_VOID);
JMP (PC + OP[0]);
/* brf0f.s */
void
-OP_4A00 ()
+OP_4A00 (void)
{
trace_input ("brf0f.s", OP_CONSTANT8, OP_VOID, OP_VOID);
if (!PSW_F0)
/* brf0f.l */
void
-OP_25000000 ()
+OP_25000000 (void)
{
trace_input ("brf0f.l", OP_CONSTANT16, OP_VOID, OP_VOID);
if (!PSW_F0)
/* brf0t.s */
void
-OP_4B00 ()
+OP_4B00 (void)
{
trace_input ("brf0t.s", OP_CONSTANT8, OP_VOID, OP_VOID);
if (PSW_F0)
/* brf0t.l */
void
-OP_25800000 ()
+OP_25800000 (void)
{
trace_input ("brf0t.l", OP_CONSTANT16, OP_VOID, OP_VOID);
if (PSW_F0)
/* bseti */
void
-OP_801 ()
+OP_801 (void)
{
int16 tmp;
trace_input ("bseti", OP_REG, OP_CONSTANT16, OP_VOID);
/* btsti */
void
-OP_E01 ()
+OP_E01 (void)
{
trace_input ("btsti", OP_REG, OP_CONSTANT16, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* clrac */
void
-OP_5601 ()
+OP_5601 (void)
{
trace_input ("clrac", OP_ACCUM_OUTPUT, OP_VOID, OP_VOID);
SET_ACC (OP[0], 0);
/* cmp */
void
-OP_600 ()
+OP_600 (void)
{
trace_input ("cmp", OP_REG, OP_REG, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmp */
void
-OP_1603 ()
+OP_1603 (void)
{
trace_input ("cmp", OP_ACCUM, OP_ACCUM, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpeq */
void
-OP_400 ()
+OP_400 (void)
{
trace_input ("cmpeq", OP_REG, OP_REG, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpeq */
void
-OP_1403 ()
+OP_1403 (void)
{
trace_input ("cmpeq", OP_ACCUM, OP_ACCUM, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpeqi.s */
void
-OP_401 ()
+OP_401 (void)
{
trace_input ("cmpeqi.s", OP_REG, OP_CONSTANT4, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpeqi.l */
void
-OP_2000000 ()
+OP_2000000 (void)
{
trace_input ("cmpeqi.l", OP_REG, OP_CONSTANT16, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpi.s */
void
-OP_601 ()
+OP_601 (void)
{
trace_input ("cmpi.s", OP_REG, OP_CONSTANT4, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpi.l */
void
-OP_3000000 ()
+OP_3000000 (void)
{
trace_input ("cmpi.l", OP_REG, OP_CONSTANT16, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpu */
void
-OP_4600 ()
+OP_4600 (void)
{
trace_input ("cmpu", OP_REG, OP_REG, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cmpui */
void
-OP_23000000 ()
+OP_23000000 (void)
{
trace_input ("cmpui", OP_REG, OP_CONSTANT16, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* cpfg */
void
-OP_4E09 ()
+OP_4E09 (void)
{
uint8 val;
/* cpfg */
void
-OP_4E0F ()
+OP_4E0F (void)
{
uint8 val;
/* dbt */
void
-OP_5F20 ()
+OP_5F20 (void)
{
/* d10v_callback->printf_filtered(d10v_callback, "***** DBT ***** PC=%x\n",PC); */
/* divs */
void
-OP_14002800 ()
+OP_14002800 (void)
{
uint16 foo, tmp, tmpf;
uint16 hi;
/* exef0f */
void
-OP_4E04 ()
+OP_4E04 (void)
{
trace_input ("exef0f", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F0 == 0);
/* exef0t */
void
-OP_4E24 ()
+OP_4E24 (void)
{
trace_input ("exef0t", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F0 != 0);
/* exef1f */
void
-OP_4E40 ()
+OP_4E40 (void)
{
trace_input ("exef1f", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F1 == 0);
/* exef1t */
void
-OP_4E42 ()
+OP_4E42 (void)
{
trace_input ("exef1t", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F1 != 0);
/* exefaf */
void
-OP_4E00 ()
+OP_4E00 (void)
{
trace_input ("exefaf", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F0 == 0) & (PSW_F1 == 0);
/* exefat */
void
-OP_4E02 ()
+OP_4E02 (void)
{
trace_input ("exefat", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F0 == 0) & (PSW_F1 != 0);
/* exetaf */
void
-OP_4E20 ()
+OP_4E20 (void)
{
trace_input ("exetaf", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F0 != 0) & (PSW_F1 == 0);
/* exetat */
void
-OP_4E22 ()
+OP_4E22 (void)
{
trace_input ("exetat", OP_VOID, OP_VOID, OP_VOID);
State.exe = (PSW_F0 != 0) & (PSW_F1 != 0);
/* exp */
void
-OP_15002A00 ()
+OP_15002A00 (void)
{
uint32 tmp, foo;
int i;
/* exp */
void
-OP_15002A02 ()
+OP_15002A02 (void)
{
int64 tmp, foo;
int i;
/* jl */
void
-OP_4D00 ()
+OP_4D00 (void)
{
trace_input ("jl", OP_REG, OP_R0, OP_R1);
SET_GPR (13, PC + 1);
/* jmp */
void
-OP_4C00 ()
+OP_4C00 (void)
{
trace_input ("jmp", OP_REG,
(OP[0] == 13) ? OP_R0 : OP_VOID,
/* ld */
void
-OP_30000000 ()
+OP_30000000 (void)
{
uint16 tmp;
uint16 addr = OP[1] + GPR (OP[2]);
/* ld */
void
-OP_6401 ()
+OP_6401 (void)
{
uint16 tmp;
uint16 addr = GPR (OP[1]);
/* ld */
void
-OP_6001 ()
+OP_6001 (void)
{
uint16 tmp;
uint16 addr = GPR (OP[1]);
/* ld */
void
-OP_6000 ()
+OP_6000 (void)
{
uint16 tmp;
uint16 addr = GPR (OP[1]);
/* ld */
void
-OP_32010000 ()
+OP_32010000 (void)
{
uint16 tmp;
uint16 addr = OP[1];
/* ld2w */
void
-OP_31000000 ()
+OP_31000000 (void)
{
int32 tmp;
uint16 addr = OP[1] + GPR (OP[2]);
/* ld2w */
void
-OP_6601 ()
+OP_6601 (void)
{
uint16 addr = GPR (OP[1]);
int32 tmp;
/* ld2w */
void
-OP_6201 ()
+OP_6201 (void)
{
int32 tmp;
uint16 addr = GPR (OP[1]);
/* ld2w */
void
-OP_6200 ()
+OP_6200 (void)
{
uint16 addr = GPR (OP[1]);
int32 tmp;
/* ld2w */
void
-OP_33010000 ()
+OP_33010000 (void)
{
int32 tmp;
uint16 addr = OP[1];
/* ldb */
void
-OP_38000000 ()
+OP_38000000 (void)
{
int16 tmp;
trace_input ("ldb", OP_REG_OUTPUT, OP_MEMREF2, OP_VOID);
/* ldb */
void
-OP_7000 ()
+OP_7000 (void)
{
int16 tmp;
trace_input ("ldb", OP_REG_OUTPUT, OP_MEMREF, OP_VOID);
/* ldi.s */
void
-OP_4001 ()
+OP_4001 (void)
{
int16 tmp;
trace_input ("ldi.s", OP_REG_OUTPUT, OP_CONSTANT4, OP_VOID);
/* ldi.l */
void
-OP_20000000 ()
+OP_20000000 (void)
{
int16 tmp;
trace_input ("ldi.l", OP_REG_OUTPUT, OP_CONSTANT16, OP_VOID);
/* ldub */
void
-OP_39000000 ()
+OP_39000000 (void)
{
int16 tmp;
trace_input ("ldub", OP_REG_OUTPUT, OP_MEMREF2, OP_VOID);
/* ldub */
void
-OP_7200 ()
+OP_7200 (void)
{
int16 tmp;
trace_input ("ldub", OP_REG_OUTPUT, OP_MEMREF, OP_VOID);
/* mac */
void
-OP_2A00 ()
+OP_2A00 (void)
{
int64 tmp;
/* macsu */
void
-OP_1A00 ()
+OP_1A00 (void)
{
int64 tmp;
/* macu */
void
-OP_3A00 ()
+OP_3A00 (void)
{
uint64 tmp;
uint32 src1;
/* max */
void
-OP_2600 ()
+OP_2600 (void)
{
int16 tmp;
trace_input ("max", OP_REG, OP_REG, OP_VOID);
/* max */
void
-OP_3600 ()
+OP_3600 (void)
{
int64 tmp;
/* max */
void
-OP_3602 ()
+OP_3602 (void)
{
int64 tmp;
trace_input ("max", OP_ACCUM, OP_ACCUM, OP_VOID);
/* min */
void
-OP_2601 ()
+OP_2601 (void)
{
int16 tmp;
trace_input ("min", OP_REG, OP_REG, OP_VOID);
/* min */
void
-OP_3601 ()
+OP_3601 (void)
{
int64 tmp;
/* min */
void
-OP_3603 ()
+OP_3603 (void)
{
int64 tmp;
trace_input ("min", OP_ACCUM, OP_ACCUM, OP_VOID);
/* msb */
void
-OP_2800 ()
+OP_2800 (void)
{
int64 tmp;
/* msbsu */
void
-OP_1800 ()
+OP_1800 (void)
{
int64 tmp;
/* msbu */
void
-OP_3800 ()
+OP_3800 (void)
{
uint64 tmp;
uint32 src1;
/* mul */
void
-OP_2E00 ()
+OP_2E00 (void)
{
int16 tmp;
trace_input ("mul", OP_REG, OP_REG, OP_VOID);
/* mulx */
void
-OP_2C00 ()
+OP_2C00 (void)
{
int64 tmp;
/* mulxsu */
void
-OP_1C00 ()
+OP_1C00 (void)
{
int64 tmp;
/* mulxu */
void
-OP_3C00 ()
+OP_3C00 (void)
{
uint64 tmp;
uint32 src1;
/* mv */
void
-OP_4000 ()
+OP_4000 (void)
{
int16 tmp;
trace_input ("mv", OP_REG_OUTPUT, OP_REG, OP_VOID);
/* mv2w */
void
-OP_5000 ()
+OP_5000 (void)
{
int32 tmp;
trace_input ("mv2w", OP_DREG_OUTPUT, OP_DREG, OP_VOID);
/* mv2wfac */
void
-OP_3E00 ()
+OP_3E00 (void)
{
int32 tmp;
trace_input ("mv2wfac", OP_DREG_OUTPUT, OP_ACCUM, OP_VOID);
/* mv2wtac */
void
-OP_3E01 ()
+OP_3E01 (void)
{
int64 tmp;
trace_input ("mv2wtac", OP_DREG, OP_ACCUM_OUTPUT, OP_VOID);
/* mvac */
void
-OP_3E03 ()
+OP_3E03 (void)
{
int64 tmp;
trace_input ("mvac", OP_ACCUM_OUTPUT, OP_ACCUM, OP_VOID);
/* mvb */
void
-OP_5400 ()
+OP_5400 (void)
{
int16 tmp;
trace_input ("mvb", OP_REG_OUTPUT, OP_REG, OP_VOID);
/* mvf0f */
void
-OP_4400 ()
+OP_4400 (void)
{
int16 tmp;
trace_input ("mvf0f", OP_REG_OUTPUT, OP_REG, OP_VOID);
/* mvf0t */
void
-OP_4401 ()
+OP_4401 (void)
{
int16 tmp;
trace_input ("mvf0t", OP_REG_OUTPUT, OP_REG, OP_VOID);
/* mvfacg */
void
-OP_1E04 ()
+OP_1E04 (void)
{
int16 tmp;
trace_input ("mvfacg", OP_REG_OUTPUT, OP_ACCUM, OP_VOID);
/* mvfachi */
void
-OP_1E00 ()
+OP_1E00 (void)
{
int16 tmp;
trace_input ("mvfachi", OP_REG_OUTPUT, OP_ACCUM, OP_VOID);
/* mvfaclo */
void
-OP_1E02 ()
+OP_1E02 (void)
{
int16 tmp;
trace_input ("mvfaclo", OP_REG_OUTPUT, OP_ACCUM, OP_VOID);
/* mvfc */
void
-OP_5200 ()
+OP_5200 (void)
{
int16 tmp;
trace_input ("mvfc", OP_REG_OUTPUT, OP_CR, OP_VOID);
/* mvtacg */
void
-OP_1E41 ()
+OP_1E41 (void)
{
int64 tmp;
trace_input ("mvtacg", OP_REG, OP_ACCUM, OP_VOID);
/* mvtachi */
void
-OP_1E01 ()
+OP_1E01 (void)
{
uint64 tmp;
trace_input ("mvtachi", OP_REG, OP_ACCUM, OP_VOID);
/* mvtaclo */
void
-OP_1E21 ()
+OP_1E21 (void)
{
int64 tmp;
trace_input ("mvtaclo", OP_REG, OP_ACCUM, OP_VOID);
/* mvtc */
void
-OP_5600 ()
+OP_5600 (void)
{
int16 tmp;
trace_input ("mvtc", OP_REG, OP_CR_OUTPUT, OP_VOID);
/* mvub */
void
-OP_5401 ()
+OP_5401 (void)
{
int16 tmp;
trace_input ("mvub", OP_REG_OUTPUT, OP_REG, OP_VOID);
/* neg */
void
-OP_4605 ()
+OP_4605 (void)
{
int16 tmp;
trace_input ("neg", OP_REG, OP_VOID, OP_VOID);
/* neg */
void
-OP_5605 ()
+OP_5605 (void)
{
int64 tmp;
/* nop */
void
-OP_5E00 ()
+OP_5E00 (void)
{
trace_input ("nop", OP_VOID, OP_VOID, OP_VOID);
/* not */
void
-OP_4603 ()
+OP_4603 (void)
{
int16 tmp;
trace_input ("not", OP_REG, OP_VOID, OP_VOID);
/* or */
void
-OP_800 ()
+OP_800 (void)
{
int16 tmp;
trace_input ("or", OP_REG, OP_REG, OP_VOID);
/* or3 */
void
-OP_4000000 ()
+OP_4000000 (void)
{
int16 tmp;
trace_input ("or3", OP_REG_OUTPUT, OP_REG, OP_CONSTANT16);
/* rac */
void
-OP_5201 ()
+OP_5201 (void)
{
int64 tmp;
int shift = SEXT3 (OP[2]);
/* rachi */
void
-OP_4201 ()
+OP_4201 (void)
{
signed64 tmp;
int shift = SEXT3 (OP[2]);
/* rep */
void
-OP_27000000 ()
+OP_27000000 (void)
{
trace_input ("rep", OP_REG, OP_CONSTANT16, OP_VOID);
SET_RPT_S (PC + 1);
/* repi */
void
-OP_2F000000 ()
+OP_2F000000 (void)
{
trace_input ("repi", OP_CONSTANT16, OP_CONSTANT16, OP_VOID);
SET_RPT_S (PC + 1);
/* rtd */
void
-OP_5F60 ()
+OP_5F60 (void)
{
trace_input ("rtd", OP_VOID, OP_VOID, OP_VOID);
SET_CREG (PSW_CR, DPSW);
/* rte */
void
-OP_5F40 ()
+OP_5F40 (void)
{
trace_input ("rte", OP_VOID, OP_VOID, OP_VOID);
SET_CREG (PSW_CR, BPSW);
}
/* sac */
-void OP_5209 ()
+void OP_5209 (void)
{
int64 tmp;
/* sachi */
void
-OP_4209 ()
+OP_4209 (void)
{
int64 tmp;
/* sadd */
void
-OP_1223 ()
+OP_1223 (void)
{
int64 tmp;
/* setf0f */
void
-OP_4611 ()
+OP_4611 (void)
{
int16 tmp;
trace_input ("setf0f", OP_REG_OUTPUT, OP_VOID, OP_VOID);
/* setf0t */
void
-OP_4613 ()
+OP_4613 (void)
{
int16 tmp;
trace_input ("setf0t", OP_REG_OUTPUT, OP_VOID, OP_VOID);
/* slae */
void
-OP_3220 ()
+OP_3220 (void)
{
int64 tmp;
int16 reg;
/* sleep */
void
-OP_5FC0 ()
+OP_5FC0 (void)
{
trace_input ("sleep", OP_VOID, OP_VOID, OP_VOID);
SET_PSW_IE (1);
/* sll */
void
-OP_2200 ()
+OP_2200 (void)
{
int16 tmp;
trace_input ("sll", OP_REG, OP_REG, OP_VOID);
/* sll */
void
-OP_3200 ()
+OP_3200 (void)
{
int64 tmp;
trace_input ("sll", OP_ACCUM, OP_REG, OP_VOID);
/* slli */
void
-OP_2201 ()
+OP_2201 (void)
{
int16 tmp;
trace_input ("slli", OP_REG, OP_CONSTANT16, OP_VOID);
/* slli */
void
-OP_3201 ()
+OP_3201 (void)
{
int64 tmp;
/* slx */
void
-OP_460B ()
+OP_460B (void)
{
int16 tmp;
trace_input ("slx", OP_REG, OP_VOID, OP_VOID);
/* sra */
void
-OP_2400 ()
+OP_2400 (void)
{
int16 tmp;
trace_input ("sra", OP_REG, OP_REG, OP_VOID);
/* sra */
void
-OP_3400 ()
+OP_3400 (void)
{
trace_input ("sra", OP_ACCUM, OP_REG, OP_VOID);
if ((GPR (OP[1]) & 31) <= 16)
/* srai */
void
-OP_2401 ()
+OP_2401 (void)
{
int16 tmp;
trace_input ("srai", OP_REG, OP_CONSTANT16, OP_VOID);
/* srai */
void
-OP_3401 ()
+OP_3401 (void)
{
int64 tmp;
if (OP[1] == 0)
/* srl */
void
-OP_2000 ()
+OP_2000 (void)
{
int16 tmp;
trace_input ("srl", OP_REG, OP_REG, OP_VOID);
/* srl */
void
-OP_3000 ()
+OP_3000 (void)
{
trace_input ("srl", OP_ACCUM, OP_REG, OP_VOID);
if ((GPR (OP[1]) & 31) <= 16)
/* srli */
void
-OP_2001 ()
+OP_2001 (void)
{
int16 tmp;
trace_input ("srli", OP_REG, OP_CONSTANT16, OP_VOID);
/* srli */
void
-OP_3001 ()
+OP_3001 (void)
{
int64 tmp;
if (OP[1] == 0)
/* srx */
void
-OP_4609 ()
+OP_4609 (void)
{
uint16 tmp;
trace_input ("srx", OP_REG, OP_VOID, OP_VOID);
/* st */
void
-OP_34000000 ()
+OP_34000000 (void)
{
uint16 addr = OP[1] + GPR (OP[2]);
trace_input ("st", OP_REG, OP_MEMREF2, OP_VOID);
/* st */
void
-OP_6800 ()
+OP_6800 (void)
{
uint16 addr = GPR (OP[1]);
trace_input ("st", OP_REG, OP_MEMREF, OP_VOID);
/* st */
/* st Rsrc1,@-SP */
void
-OP_6C1F ()
+OP_6C1F (void)
{
uint16 addr = GPR (OP[1]) - 2;
trace_input ("st", OP_REG, OP_PREDEC, OP_VOID);
/* st */
void
-OP_6801 ()
+OP_6801 (void)
{
uint16 addr = GPR (OP[1]);
trace_input ("st", OP_REG, OP_POSTINC, OP_VOID);
/* st */
void
-OP_6C01 ()
+OP_6C01 (void)
{
uint16 addr = GPR (OP[1]);
trace_input ("st", OP_REG, OP_POSTDEC, OP_VOID);
/* st */
void
-OP_36010000 ()
+OP_36010000 (void)
{
uint16 addr = OP[1];
trace_input ("st", OP_REG, OP_MEMREF3, OP_VOID);
/* st2w */
void
-OP_35000000 ()
+OP_35000000 (void)
{
uint16 addr = GPR (OP[2])+ OP[1];
trace_input ("st2w", OP_DREG, OP_MEMREF2, OP_VOID);
/* st2w */
void
-OP_6A00 ()
+OP_6A00 (void)
{
uint16 addr = GPR (OP[1]);
trace_input ("st2w", OP_DREG, OP_MEMREF, OP_VOID);
/* st2w */
void
-OP_6E1F ()
+OP_6E1F (void)
{
uint16 addr = GPR (OP[1]) - 4;
trace_input ("st2w", OP_DREG, OP_PREDEC, OP_VOID);
/* st2w */
void
-OP_6A01 ()
+OP_6A01 (void)
{
uint16 addr = GPR (OP[1]);
trace_input ("st2w", OP_DREG, OP_POSTINC, OP_VOID);
/* st2w */
void
-OP_6E01 ()
+OP_6E01 (void)
{
uint16 addr = GPR (OP[1]);
trace_input ("st2w", OP_DREG, OP_POSTDEC, OP_VOID);
/* st2w */
void
-OP_37010000 ()
+OP_37010000 (void)
{
uint16 addr = OP[1];
trace_input ("st2w", OP_DREG, OP_MEMREF3, OP_VOID);
/* stb */
void
-OP_3C000000 ()
+OP_3C000000 (void)
{
trace_input ("stb", OP_REG, OP_MEMREF2, OP_VOID);
SB (GPR (OP[2]) + OP[1], GPR (OP[0]));
/* stb */
void
-OP_7800 ()
+OP_7800 (void)
{
trace_input ("stb", OP_REG, OP_MEMREF, OP_VOID);
SB (GPR (OP[1]), GPR (OP[0]));
/* stop */
void
-OP_5FE0 ()
+OP_5FE0 (void)
{
trace_input ("stop", OP_VOID, OP_VOID, OP_VOID);
State.exception = SIG_D10V_STOP;
/* sub */
void
-OP_0 ()
+OP_0 (void)
{
uint16 a = GPR (OP[0]);
uint16 b = GPR (OP[1]);
/* sub */
void
-OP_1001 ()
+OP_1001 (void)
{
int64 tmp;
/* sub */
void
-OP_1003 ()
+OP_1003 (void)
{
int64 tmp;
/* sub2w */
void
-OP_1000 ()
+OP_1000 (void)
{
uint32 tmp, a, b;
/* subac3 */
void
-OP_17000000 ()
+OP_17000000 (void)
{
int64 tmp;
/* subac3 */
void
-OP_17000002 ()
+OP_17000002 (void)
{
int64 tmp;
/* subac3s */
void
-OP_17001000 ()
+OP_17001000 (void)
{
int64 tmp;
/* subac3s */
void
-OP_17001002 ()
+OP_17001002 (void)
{
int64 tmp;
/* subi */
void
-OP_1 ()
+OP_1 (void)
{
unsigned tmp;
if (OP[1] == 0)
/* trap */
void
-OP_5F00 ()
+OP_5F00 (void)
{
trace_input ("trap", OP_CONSTANT4, OP_VOID, OP_VOID);
trace_output_void ();
/* tst0i */
void
-OP_7000000 ()
+OP_7000000 (void)
{
trace_input ("tst0i", OP_REG, OP_CONSTANT16, OP_VOID);
SET_PSW_F1 (PSW_F0);;
/* tst1i */
void
-OP_F000000 ()
+OP_F000000 (void)
{
trace_input ("tst1i", OP_REG, OP_CONSTANT16, OP_VOID);
SET_PSW_F1 (PSW_F0);
/* wait */
void
-OP_5F80 ()
+OP_5F80 (void)
{
trace_input ("wait", OP_VOID, OP_VOID, OP_VOID);
SET_PSW_IE (1);
/* xor */
void
-OP_A00 ()
+OP_A00 (void)
{
int16 tmp;
trace_input ("xor", OP_REG, OP_REG, OP_VOID);
/* xor3 */
void
-OP_5000000 ()
+OP_5000000 (void)
{
int16 tmp;
trace_input ("xor3", OP_REG_OUTPUT, OP_REG, OP_CONSTANT16);