shithub: mc

Download patch

ref: e0c7e3825407886f7473de928feca305079846a7
parent: 552e5b33111a9bfd408073b8eebaf0bd979199cb
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jul 30 21:14:22 EDT 2012

Fix up more missing table entries.

--- a/8/locs.c
+++ b/8/locs.c
@@ -234,12 +234,12 @@
         [R14d] = {Rnone, R14b, R14w, R14d, R14},
         [R15d] = {Rnone, R15b, R15w, R15d, R15},
 
-        [Rrax] = {Rnone, Ral, Rax, Reax},
-        [Rrcx] = {Rnone, Rcl, Rcx, Recx},
-        [Rrdx] = {Rnone, Rdl, Rdx, Redx},
-        [Rrbx] = {Rnone, Rbl, Rbx, Rebx},
-        [Rrsi] = {Rnone, Rsil, Rsi, Resi},
-        [Rrdi] = {Rnone, Rsil, Rdi, Redi},
+        [Rrax] = {Rnone, Ral,  Rax, Reax, Rrax},
+        [Rrcx] = {Rnone, Rcl,  Rcx, Recx, Rrcx},
+        [Rrdx] = {Rnone, Rdl,  Rdx, Redx, Rrdx},
+        [Rrbx] = {Rnone, Rbl,  Rbx, Rebx, Rrbx},
+        [Rrsi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
+        [Rrdi] = {Rnone, Rsil, Rdi, Redi, Rrdi},
         [R8]   = {Rnone, R8b, R8w, R8d, R8},
         [R9]   = {Rnone, R9b, R9w, R9d, R9},
         [R10]  = {Rnone, R10b, R10w, R10d, R10},
--- a/8/simp.c
+++ b/8/simp.c
@@ -212,6 +212,7 @@
 int stacktype(Type *t)
 {
     /* the types are arranged in types.def such that this is true */
+    t = tybase(t);
     return t->type >= Tyslice;
 }
 
--