mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
New PowerPC CPU flag to define the decrementer and time-base source clock.
Use it to properly initialize the clock for the PreP target. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3701 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
265531154a
commit
4018bae916
3 changed files with 90 additions and 53 deletions
|
@ -441,23 +441,27 @@ union ppc_tlb_t {
|
|||
#endif
|
||||
|
||||
enum {
|
||||
POWERPC_FLAG_NONE = 0x00000000,
|
||||
POWERPC_FLAG_NONE = 0x00000000,
|
||||
/* Flag for MSR bit 25 signification (VRE/SPE) */
|
||||
POWERPC_FLAG_SPE = 0x00000001,
|
||||
POWERPC_FLAG_VRE = 0x00000002,
|
||||
POWERPC_FLAG_SPE = 0x00000001,
|
||||
POWERPC_FLAG_VRE = 0x00000002,
|
||||
/* Flag for MSR bit 17 signification (TGPR/CE) */
|
||||
POWERPC_FLAG_TGPR = 0x00000004,
|
||||
POWERPC_FLAG_CE = 0x00000008,
|
||||
POWERPC_FLAG_TGPR = 0x00000004,
|
||||
POWERPC_FLAG_CE = 0x00000008,
|
||||
/* Flag for MSR bit 10 signification (SE/DWE/UBLE) */
|
||||
POWERPC_FLAG_SE = 0x00000010,
|
||||
POWERPC_FLAG_DWE = 0x00000020,
|
||||
POWERPC_FLAG_UBLE = 0x00000040,
|
||||
POWERPC_FLAG_SE = 0x00000010,
|
||||
POWERPC_FLAG_DWE = 0x00000020,
|
||||
POWERPC_FLAG_UBLE = 0x00000040,
|
||||
/* Flag for MSR bit 9 signification (BE/DE) */
|
||||
POWERPC_FLAG_BE = 0x00000080,
|
||||
POWERPC_FLAG_DE = 0x00000100,
|
||||
POWERPC_FLAG_BE = 0x00000080,
|
||||
POWERPC_FLAG_DE = 0x00000100,
|
||||
/* Flag for MSR bit 2 signification (PX/PMM) */
|
||||
POWERPC_FLAG_PX = 0x00000200,
|
||||
POWERPC_FLAG_PMM = 0x00000400,
|
||||
POWERPC_FLAG_PX = 0x00000200,
|
||||
POWERPC_FLAG_PMM = 0x00000400,
|
||||
/* Flag for special features */
|
||||
/* Decrementer clock: RTC clock (POWER, 601) or bus clock */
|
||||
POWERPC_FLAG_RTC_CLK = 0x00010000,
|
||||
POWERPC_FLAG_BUS_CLK = 0x00020000,
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue