Fix SVM's write_cc_entry_offset.
authorTaylor R Campbell <campbell@mumble.net>
Sat, 28 Aug 2010 20:58:19 +0000 (20:58 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sat, 28 Aug 2010 20:58:19 +0000 (20:58 +0000)
Since this is used only to initialize trampolines, the starting
instruction is irrelevant, and will be garbage anyway because the
trampoline blocks are always freshly allocated.

src/microcode/cmpintmd/svm1.c

index bff8c8f3f1c706955286b6d5f5c617befa031fc7..bbbc2e477dfa68ab27d654bd00d621769a0ee6fe 100644 (file)
@@ -158,11 +158,7 @@ read_cc_entry_offset (cc_entry_offset_t * ceo, insn_t * address)
 bool
 write_cc_entry_offset (cc_entry_offset_t * ceo, insn_t * address)
 {
-  unsigned int code;
-
-  if ((*address) == SVM1_INST_ENTER_CLOSURE)
-    return (true);                     /* not supported */
-  code = (ceo->offset) << 1;
+  unsigned int code = (ceo->offset) << 1;
   write_u16 (code + (ceo->continued_p ? 1 : 0), address - 2);
   return (false);
 }