summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAaron Larson2017-06-02 13:32:59 +0200
committerDavid Gibson2017-06-06 00:53:24 +0200
commita09f7443bcccd1703adf7c2954af695629c784a5 (patch)
tree93603cb5cccb98bbc559b4c8561c8d3180873fba /include
parentspapr: Make DRC get_index and get_type methods into plain functions (diff)
downloadqemu-a09f7443bcccd1703adf7c2954af695629c784a5.tar.gz
qemu-a09f7443bcccd1703adf7c2954af695629c784a5.tar.xz
qemu-a09f7443bcccd1703adf7c2954af695629c784a5.zip
target-ppc: Fix openpic timer read register offset
openpic_tmr_read() is incorrectly computing register offset of the TCCR, TBCR, TVPR, and TDR registers when accessing the open pic timer registers. Specifically the offset of timer registers for openpic_tmr_read() is not accounting for the timer frequency reporting register (TFFR) which is the first register in the "tmr" memory region. openpic_tmr_write() *is* correctly computing the offset by adding 0x10f0 to the address prior to computing the register index. This patch instead subtracts 0x10 in both the read and write routines and eliminates some other gratuitous differences between the functions. Signed-off-by: Aaron Larson <alarson@ddci.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions