• B
    SH4: Eliminate P4 to A7 mangling (Takashi YOSHII). · 5c16736a
    balrog 提交于
    Main purpose of this is to delete
           *physical = address & 0x1fffffff;
    at target-sh4/helper.c:449, using new mmio rule introduced by #5849
    This masking is a nice trick to realize P4/A7 duality of SH registers.
    But, IMHO, it is logically wrong.
    
    Most of SH4 cpu control registers in P4 area(0xfc000000...0xffffffff) have
    one more address called A7 which is usually P4 address with upper 3bits masked.
    This is an address only appears in TLB's physical address part.
    
    Current code use trick writing drivers as if they are really in A7
    (that's why you see many *_A7 in hw/sh*.c), and using translation P4 to A7.
    Signed-off-by: NTakashi YOSHII <takasi-y@ops.dti.ne.jp>
    Signed-off-by: NAndrzej Zaborowski <andrew.zaborowski@intel.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5935 c046a42c-6fe2-441c-8c8c-71466251a162
    5c16736a
sh_serial.c 10.2 KB