From 1ab44e048af328d95a7588ab16ad06aed52f47f1 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sat, 28 Aug 2010 20:58:19 +0000 Subject: [PATCH] Fix SVM's write_cc_entry_offset. 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/microcode/cmpintmd/svm1.c b/src/microcode/cmpintmd/svm1.c index bff8c8f3f..bbbc2e477 100644 --- a/src/microcode/cmpintmd/svm1.c +++ b/src/microcode/cmpintmd/svm1.c @@ -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); } -- 2.25.1