Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>2021-06-24 20:25:54 +0300
committerGitHub <noreply@github.com>2021-06-24 20:25:54 +0300
commit5dbbae5f3b6e96ac113d20029ae3be7d3afd70d8 (patch)
tree2c8e9341415ed681857e4d8aebac03c7cf602b94 /src/coreclr/jit
parent8ecdf98273ac279871fb27da996c402f73188156 (diff)
Fix instruction hex display (#54675)
Diffstat (limited to 'src/coreclr/jit')
-rw-r--r--src/coreclr/jit/emitxarch.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coreclr/jit/emitxarch.cpp b/src/coreclr/jit/emitxarch.cpp
index 6578232a929..a0a5e3283d4 100644
--- a/src/coreclr/jit/emitxarch.cpp
+++ b/src/coreclr/jit/emitxarch.cpp
@@ -8676,8 +8676,10 @@ void emitter::emitDispIns(
if (code != nullptr)
{
/* Display the instruction hex code */
+ assert(((code >= emitCodeBlock) && (code < emitCodeBlock + emitTotalHotCodeSize)) ||
+ ((code >= emitColdCodeBlock) && (code < emitColdCodeBlock + emitTotalColdCodeSize)));
- emitDispInsHex(id, code, sz);
+ emitDispInsHex(id, code + writeableOffset, sz);
}
/* Display the instruction name */