target-alpha: fix cmpbge instruction
[qemu] / target-alpha / op_helper.c
index 393187e..0fa4fe0 100644 (file)
@@ -330,7 +330,7 @@ uint64_t helper_cmpbge (uint64_t op1, uint64_t op2)
     int i;
 
     res = 0;
-    for (i = 0; i < 7; i++) {
+    for (i = 0; i < 8; i++) {
         opa = op1 >> (i * 8);
         opb = op2 >> (i * 8);
         if (opa >= opb)