From: Stuart B. <zu...@us...> - 2007-03-21 23:37:41
|
Update of /cvsroot/hppaqemu/hppaqemu/target-hppa In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv11730 Modified Files: translate.c Log Message: Fix bug in assemble_12() -- bit 9 was lost. Index: translate.c =================================================================== RCS file: /cvsroot/hppaqemu/hppaqemu/target-hppa/translate.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- translate.c 21 Mar 2007 23:07:45 -0000 1.37 +++ translate.c 21 Mar 2007 23:37:38 -0000 1.38 @@ -97,7 +97,7 @@ } static uint32_t assemble_12(uint32_t x, uint32_t y) { - return (y << 11) | ((x & 1) << 10) | ((x >> 1) & ~(~0 << 9)); + return (y << 11) | ((x & 1) << 10) | ((x >> 1) & ~(~0 << 10)); } static GenOpFunc *gen_op_movl_TN_reg[3][32] = |