diff options
Diffstat (limited to 'include/opcode')
-rw-r--r-- | include/opcode/arc-func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/opcode/arc-func.h b/include/opcode/arc-func.h index 96ffcff..47451a6 100644 --- a/include/opcode/arc-func.h +++ b/include/opcode/arc-func.h @@ -66,8 +66,8 @@ replace_bits16 (unsigned insn, int value ATTRIBUTE_UNUSED) ATTRIBUTE_UNUSED static unsigned replace_bits24 (unsigned insn, int value ATTRIBUTE_UNUSED) { - insn = insn & ~0xffffff; - insn |= ((value >> 0) & 0xffffff) << 0; + insn = insn & ~0xffffff00; + insn |= ((value >> 0) & 0xffffff) << 8; return insn; } |