+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-typedef address_word sim_cia;
extern unsigned int pc;
typedef struct _sim_cpu SIM_CPU;
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
#include "sim-signal.h"
-typedef unsigned32 sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "bfin-sim.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-engine.h (CIA_ADDR): Delete.
+ * sim-base.h: Update sim_cia example.
+ [!CIA_ADDR] (sim_cia): New typedef.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
#if WITH_SCACHE
-#define CIA_ADDR(cia) (cia)
-
#if WITH_SCACHE_PBB
/* Return the scache pointer of the current insn. */
/* This is the "simple" engine case. */
-#define CIA_ADDR(cia) (cia)
-
#define SEM_SEM_ARG(vpc, sc) (sc)
#define SEM_NEXT_VPC(sem_arg, pc, len) ((pc) + (len))
information), include ``sim-base.h'':
#include "sim-basics.h"
- typedef address_word sim_cia;
/-* If `sim_cia' is not an integral value (e.g. a struct), define
CIA_ADDR to return the integral value. *-/
+ /-* typedef struct {...} sim_cia; *-/
/-* #define CIA_ADDR(cia) (...) *-/
#include "sim-base.h"
(e.g. for delay slot handling). */
#ifndef CIA_ADDR
#define CIA_ADDR(cia) (cia)
+typedef address_word sim_cia;
#endif
#ifndef INVALID_INSTRUCTION_ADDRESS
#define INVALID_INSTRUCTION_ADDRESS ((address_word)0 - 1)
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-typedef address_word sim_cia;
typedef long int word;
typedef unsigned long int uword;
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* crisv10f.c (deliver_interrupt): Change CIA_GET to CPU_PC_GET.
#include "cris-opc.h"
#include "arch.h"
-/* These must be defined before sim-base.h. */
-typedef USI sim_cia;
-
#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
do { \
if (cpu) /* Null if ctrl-c. */ \
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-typedef address_word sim_cia;
typedef long int word;
typedef unsigned long int uword;
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+ (frv_sim_engine_halt_hook): Move below includes.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "frv-opc.h"
#include "arch.h"
-/* These must be defined before sim-base.h. */
-typedef USI sim_cia;
-
-void frv_sim_engine_halt_hook (SIM_DESC, SIM_CPU *, sim_cia);
#define SIM_ENGINE_HALT_HOOK(SD, LAST_CPU, CIA) \
frv_sim_engine_halt_hook ((SD), (LAST_CPU), (CIA))
#include "cache.h"
#include "registers.h"
#include "profile.h"
+
+void frv_sim_engine_halt_hook (SIM_DESC, SIM_CPU *, sim_cia);
\f
/* The _sim_cpu struct. */
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* interp.c (ft32_read_item): Change CIA_GET to CPU_PC_GET.
#define SIM_MAIN_H
#include "sim-basics.h"
-
-typedef address_word sim_cia;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-/* Define sim_cia. */
-typedef unsigned32 sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
/* Pull in IQ2000_{DATA,INSN}_{MASK,VALUE}. */
#include "elf/iq2000.h"
-/* These must be defined before sim-base.h. */
-typedef USI sim_cia;
-
#include "sim-base.h"
#include "cgen-sim.h"
#include "iq2000-sim.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* dv-lm32cpu.c (deliver_lm32cpu_interrupt): Change CIA_GET to
#include "lm32-opc.h"
#include "arch.h"
-/* These must be defined before sim-base.h. */
-typedef USI sim_cia;
-
#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
do { \
if (cpu) /* null if ctrl-c */ \
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "m32r-opc.h"
#include "arch.h"
-/* These must be defined before sim-base.h. */
-typedef USI sim_cia;
-
#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
do { \
if (cpu) /* null if ctrl-c */ \
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-signal.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* interp.c (set_initial_gprs): Change CIA_SET to CPU_PC_SET.
#include "sim-basics.h"
-typedef address_word sim_cia;
typedef long int word;
typedef unsigned long int uword;
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* interp.c (issue_messages, wbat, wlat, what, rbat, rlat, rhat,
#include "microblaze.h"
#include "sim-basics.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* dv-tx3904cpu.c (deliver_tx3904cpu_interrupt): Change CIA_GET to
#include "sim-basics.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+ (SIM_ADDR): Delete comment.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* dv-mn103cpu.c (deliver_mn103cpu_interrupt): Change CIA_GET to
#include "itable.h"
#include "idecode.h"
-typedef instruction_address sim_cia;
typedef struct _sim_cpu SIM_CPU;
-/* FIXME: Perhaps igen should generate access macros for
- `instruction_address' that we could use. */
-/*#define CIA_ADDR(cia) ((cia).ip) doesn't work for mn10300*/
-
#define WITH_WATCHPOINTS 1
#define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* interp.c (wbat, wsat, wlat, rsat, rbat, rlat, sim_engine_run):
#include "sim-basics.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
#include "sim-signal.h"
-typedef unsigned32 sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "msp430-sim.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-basics.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (CIA_ADDR): Define.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
/* These must be defined before sim-base.h. */
typedef UDI sim_cia;
+#define CIA_ADDR(cia) (cia)
#include "sim-base.h"
#include "cgen-sim.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (sim_cia): Delete.
+
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_GET, CIA_SET): Delete.
#include "sim-signal.h"
#include "sim-fpu.h"
-typedef address_word sim_cia;
-
typedef struct _sim_cpu SIM_CPU;
#include "sim-base.h"