summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-02-19 11:00:42 +0100
committerAvi Kivity <avi@redhat.com>2010-04-25 12:35:21 +0300
commit0564ee8a8611326f28bae2a0455182b458826762 (patch)
treecef03027a7595370c0ca9bbd13e5446186aa39a1 /tools/perf/scripts/python/bin
parentdba2e123e7502870c965e4b445554bc8e56f78b2 (diff)
KVM: PPC: Add helpers to modify ppc fields
The PowerPC specification always lists bits from MSB to LSB. That is really confusing when you're trying to write C code, because it fits in pretty badly with the normal (1 << xx) schemes. So I came up with some nice wrappers that allow to get and set fields in a u64 with bit numbers exactly as given in the spec. That makes the code in KVM and the spec easier comparable. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions