projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ecdf98
)
Fix instruction hex display (#54675)
author
Jakob Botsch Nielsen
<Jakob.botsch.nielsen@gmail.com>
Thu, 24 Jun 2021 17:25:54 +0000
(19:25 +0200)
committer
GitHub
<noreply@github.com>
Thu, 24 Jun 2021 17:25:54 +0000
(19:25 +0200)
src/coreclr/jit/emitxarch.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/jit/emitxarch.cpp
b/src/coreclr/jit/emitxarch.cpp
index
6578232
..
a0a5e32
100644
(file)
--- 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 */