diff options
author | Thomas Huth <thuth@de.ibm.com> | 2011-09-09 15:58:37 +1000 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2011-09-09 19:07:06 +0400 |
commit | e89720b116131938fe3d4931302f69a28249c934 (patch) | |
tree | 27a8992aebbd9c51cdfc6c9ab0e924c636913dd5 /device_tree.c | |
parent | 07ff2c4475df77e38a31d50ee7f3932631806c15 (diff) |
tcg/ppc64: Fix zero extension code generation bug for ppc64 host
The ppc64 code generation backend uses an rldicr (Rotate Left Double
Immediate and Clear Right) instruction to implement zero extension of
a 32 bit quantity to a 64 bit quantity (INDEX_op_ext32u_i64). However
this is wrong - this instruction clears specified low bits of the
value, instead of high bits as we require for a zero extension. It
should instead use an rldicl (Rotate Left Double Immediate and Clear
Left) instruction.
Presumably amongst other things, this causes the SLOF firmware image
used with -M pseries to not boot on a ppc64 host.
It appears this bug was exposed by commit
0bf1dbdcc935dfc220a93cd990e947e90706aec6 (tcg/ppc64: fix 16/32 mixup)
which enabled the use of the op_ext32u_i64 operation on the ppc64
backend.
Signed-off-by: Thomas Huth <thuth@de.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'device_tree.c')
0 files changed, 0 insertions, 0 deletions