Browse Source

target-ppc: Eliminate Magic Number MSR Masks

Use MSR mnemonics from cpu.h instead of magic numbers for the CPUPPCState.msr_mask
initialization.

There is one bit in the 401x2 (and subsequent) model that I could not find any
documentation for.  It is open coded at little endian bit position 20:

    pcc->msr_mask = (1ull << 20) |
                    (1ull << MSR_KEY) |
                    (1ull << MSR_POW) |
                    (1ull << MSR_CE) |
                    ...

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
pull/12/head
Tom Musta 13 years ago
committed by Alexander Graf
parent
commit
9df5a46632
  1. 830
      target-ppc/translate_init.c

830
target-ppc/translate_init.c

File diff suppressed because it is too large
Loading…
Cancel
Save