This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[MIPS sim patch] ENGINE_ISSUE_PREFIX_HOOK
- To: gdb-patches at sources dot redhat dot com
- Subject: [MIPS sim patch] ENGINE_ISSUE_PREFIX_HOOK
- From: Ben Elliston <bje at redhat dot com>
- Date: Fri, 23 Feb 2001 08:22:32 +1100 (EST)
The following patch allows ENGINE_ISSUE_PREFIX_HOOK to be defined in a
target-specific header with specialised behaviour. If not defined,
the standard definition is taken.
Okay to commit?
2001-02-23 Ben Elliston <bje@redhat.com>
* sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Only define if not
already defined elsewhere.
Index: sim-main.h
===================================================================
RCS file: /cvs/src/src/sim/mips/sim-main.h,v
retrieving revision 1.4
diff -u -c -r1.4 sim-main.h
*** sim-main.h 2001/02/19 21:57:03 1.4
--- sim-main.h 2001/02/22 21:20:04
***************
*** 328,333 ****
--- 328,334 ----
#define simSIGINT (1 << 28) /* 0 = do nothing; 1 = SIGINT has occured */
#define simJALDELAYSLOT (1 << 29) /* 1 = in jal delay slot */
+ #ifndef ENGINE_ISSUE_PREFIX_HOOK
#define ENGINE_ISSUE_PREFIX_HOOK() \
{ \
/* Perform any pending writes */ \
***************
*** 343,348 ****
--- 344,350 ----
else \
STATE &= ~simPCOC0; \
}
+ #endif /* ENGINE_ISSUE_PREFIX_HOOK */