summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sparc/sparc.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-07-11 20:10:27 +1000
committer Vas Crabb <vas@vastheman.com>2016-07-11 20:10:27 +1000
commitb371656296866e16a3ca38105bd695eb06dee561 (patch)
tree8e217dc449b326b87a26115a8dc9809b65924096 /src/devices/cpu/sparc/sparc.h
parent7f3ced8c96af0fec5bfc7a960adbfb2e22e2b390 (diff)
SPARC core improvements (nw) [Ryan Holtz]
fixes peculiarities with PSR e.g. ICC overwritten on trap improved fcode logging
Diffstat (limited to 'src/devices/cpu/sparc/sparc.h')
-rw-r--r--src/devices/cpu/sparc/sparc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/devices/cpu/sparc/sparc.h b/src/devices/cpu/sparc/sparc.h
index cca7a70eceb..d23f032fe9a 100644
--- a/src/devices/cpu/sparc/sparc.h
+++ b/src/devices/cpu/sparc/sparc.h
@@ -85,6 +85,12 @@ public:
template<typename T> static void add_asi_desc(device_t &device, const T &desc) { return downcast<mb86901_device &>(device).add_asi_desc(desc); }
+#if LOG_FCODES
+ void enable_log_fcodes(bool enable) { m_log_fcodes = enable; }
+#else
+ void enable_log_fcodes(bool /*enable*/) { }
+#endif
+
protected:
template<typename T> void add_asi_desc(const T &desc) { m_dasm.add_asi_desc(desc); }
@@ -133,6 +139,7 @@ protected:
#if LOG_FCODES
void indent();
void disassemble_ss1_fcode(UINT32 r5, UINT32 opcode, UINT32 handler_base, UINT32 entry_point, UINT32 stack);
+ void log_fcodes();
#endif
// address spaces
@@ -248,6 +255,7 @@ protected:
UINT32 m_ss1_next_entry_point;
UINT32 m_ss1_next_stack;
std::map<UINT16, std::string> m_ss1_fcode_table;
+ bool m_log_fcodes;
#endif
// processor configuration