提交 2e13d23a 编写于 作者: J j_mayer

Fix PowerPC high BATs access: BAT number was incorrect.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3519 c046a42c-6fe2-441c-8c8c-71466251a162
上级 faadf50e
......@@ -241,7 +241,7 @@ static void spr_read_dbat (void *opaque, int sprn)
static void spr_read_dbat_h (void *opaque, int sprn)
{
gen_op_load_dbat(sprn & 1, (sprn - SPR_DBAT4U) / 2);
gen_op_load_dbat(sprn & 1, ((sprn - SPR_DBAT4U) / 2) + 4);
}
static void spr_write_dbatu (void *opaque, int sprn)
......@@ -251,7 +251,7 @@ static void spr_write_dbatu (void *opaque, int sprn)
static void spr_write_dbatu_h (void *opaque, int sprn)
{
gen_op_store_dbatu((sprn - SPR_DBAT4U) / 2);
gen_op_store_dbatu(((sprn - SPR_DBAT4U) / 2) + 4);
}
static void spr_write_dbatl (void *opaque, int sprn)
......@@ -261,7 +261,7 @@ static void spr_write_dbatl (void *opaque, int sprn)
static void spr_write_dbatl_h (void *opaque, int sprn)
{
gen_op_store_dbatl((sprn - SPR_DBAT4L) / 2);
gen_op_store_dbatl(((sprn - SPR_DBAT4L) / 2) + 4);
}
/* SDR1 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册