From 6b4c656849925aa62769d3c1783e8f441eb396f4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 29 Apr 2019 22:20:18 -0400 Subject: [PATCH] Reverses order of instruction instantiation, reducing total bus step heft by about 11%. ... since that means inserting more complicated instructions before simpler ones in general, making subset finds more likely. --- Processors/68000/Implementation/68000Storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Storage.cpp b/Processors/68000/Implementation/68000Storage.cpp index a348b47cf..f64a48afc 100644 --- a/Processors/68000/Implementation/68000Storage.cpp +++ b/Processors/68000/Implementation/68000Storage.cpp @@ -758,7 +758,7 @@ struct ProcessorStorageConstructor { #define l2(x, y) (0x10000 | ((x) << 8) | (y)) // Perform a linear search of the mappings above for this instruction. - for(size_t instruction = 0; instruction < 65536; ++instruction) { + for(ssize_t instruction = 65535; instruction >= 0; --instruction) { #ifndef NDEBUG int hits = 0; #endif