summaryrefslogtreecommitdiffstats
path: root/hw/ppc
diff options
context:
space:
mode:
authorPaolo Bonzini2015-03-21 16:32:05 +0100
committerPaolo Bonzini2015-03-25 13:37:10 +0100
commit8a5956ad6392f115521dad774055c737c49fb0dd (patch)
tree7c9b30c6fefc1ee2a6d484b44fa2a863e54ebe44 /hw/ppc
parentMerge remote-tracking branch 'remotes/bkoppelmann/tags/pull-tricore-20150324'... (diff)
downloadqemu-8a5956ad6392f115521dad774055c737c49fb0dd.tar.gz
qemu-8a5956ad6392f115521dad774055c737c49fb0dd.tar.xz
qemu-8a5956ad6392f115521dad774055c737c49fb0dd.zip
rcu tests: fix compilation on 32-bit ppc
32-bit PPC cannot do atomic operations on long long. Inside the loops, we are already using local counters that are summed at the end of the run---with some exceptions (rcu_stress_count for rcutorture, n_nodes for test-rcu-list): fix them to use the same technique. For test-rcu-list, remove the mostly unused member "val" from the list. Then, use a mutex to protect the global counts. Performance does not matter there because every thread will only enter the critical section once. Remaining uses of atomic instructions are for ints or pointers. Reported-by: Andreas Faerber <afaerber@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ppc')
0 files changed, 0 insertions, 0 deletions