diff options
author | 2018-03-23 11:28:51 +1100 | |
---|---|---|
committer | 2018-03-23 12:17:53 +1100 | |
commit | 44c7da0cf5609188f67fd146329c44236f344493 (patch) | |
tree | 03ee9ea420bf93bf75468e7a76ba7d1339136ede /src/devices/cpu/powerpc/ppc.h | |
parent | 3be74a07a89d94b6af8d42a7e3032bccea51ddb0 (diff) |
Make UML shorthand a bit easier to use without using namespace everywhere, clean up a bit of macro hell in PowerPC core
Diffstat (limited to 'src/devices/cpu/powerpc/ppc.h')
-rw-r--r-- | src/devices/cpu/powerpc/ppc.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/cpu/powerpc/ppc.h b/src/devices/cpu/powerpc/ppc.h index 0a951bd2277..7c75237e834 100644 --- a/src/devices/cpu/powerpc/ppc.h +++ b/src/devices/cpu/powerpc/ppc.h @@ -8,17 +8,17 @@ PowerPC emulator. ***************************************************************************/ - #ifndef MAME_CPU_POWERPC_PPC_H #define MAME_CPU_POWERPC_PPC_H #pragma once -#include "divtlb.h" #include "cpu/drcfe.h" #include "cpu/drcuml.h" #include "cpu/drcumlsh.h" +#include "divtlb.h" + /*************************************************************************** CONSTANTS @@ -168,14 +168,11 @@ enum downcast<ppc_device &>(*device).set_bus_frequency(_frequency); -class ppc_frontend; - - class ppc_device : public cpu_device, public device_vtlb_interface { - friend class ppc_frontend; - protected: + class frontend; + /* PowerPC flavors */ enum powerpc_flavor { @@ -535,7 +532,7 @@ protected: /* core state */ drc_cache m_cache; /* pointer to the DRC code cache */ std::unique_ptr<drcuml_state> m_drcuml; /* DRC UML generator state */ - std::unique_ptr<ppc_frontend> m_drcfe; /* pointer to the DRC front-end state */ + std::unique_ptr<frontend> m_drcfe; /* pointer to the DRC front-end state */ uint32_t m_drcoptions; /* configurable DRC options */ /* parameters for subroutines */ |