1999-04-16 09:35:26 +08:00
|
|
|
|
/* Main header for the m32r. */
|
|
|
|
|
|
|
|
|
|
#ifndef SIM_MAIN_H
|
|
|
|
|
#define SIM_MAIN_H
|
|
|
|
|
|
2015-12-25 15:34:40 +08:00
|
|
|
|
/* This is a global setting. Different cpu families can't mix-n-match -scache
|
|
|
|
|
and -pbb. However some cpu families may use -simple while others use
|
|
|
|
|
one of -scache/-pbb. */
|
|
|
|
|
#define WITH_SCACHE_PBB 1
|
|
|
|
|
|
1999-04-16 09:35:26 +08:00
|
|
|
|
#include "sim-basics.h"
|
2023-01-01 22:55:07 +08:00
|
|
|
|
#include "opcodes/m32r-desc.h"
|
|
|
|
|
#include "opcodes/m32r-opc.h"
|
1999-04-16 09:35:26 +08:00
|
|
|
|
#include "arch.h"
|
|
|
|
|
#include "sim-base.h"
|
|
|
|
|
#include "cgen-sim.h"
|
|
|
|
|
|
2022-12-23 13:49:09 +08:00
|
|
|
|
/* TODO: Move this to the CGEN generated files instead. */
|
|
|
|
|
#include "m32r-sim.h"
|
1999-04-16 09:35:26 +08:00
|
|
|
|
|
|
|
|
|
/* Misc. */
|
|
|
|
|
|
|
|
|
|
/* Catch address exceptions. */
|
2023-12-21 13:38:31 +08:00
|
|
|
|
extern SIM_CORE_SIGNAL_FN m32r_core_signal ATTRIBUTE_NORETURN;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
#define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
|
|
|
|
|
m32r_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
|
|
|
|
|
(TRANSFER), (ERROR))
|
|
|
|
|
|
|
|
|
|
#endif /* SIM_MAIN_H */
|