X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fmips-formats.h;h=d2872b186fc51427cdeebc2fd21d9d6a9fe77774;hb=39f286cd585226ad98c2cd94ee0f96988b3696ce;hp=9bf76010f0c037045657d88ddfc204994cc79177;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/mips-formats.h b/opcodes/mips-formats.h index 9bf76010f0..d2872b186f 100644 --- a/opcodes/mips-formats.h +++ b/opcodes/mips-formats.h @@ -1,5 +1,5 @@ /* mips-formats.h - Copyright (C) 2013-2016 Free Software Foundation, Inc. + Copyright (C) 2013-2019 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,14 +18,17 @@ /* For ARRAY_SIZE. */ #include "libiberty.h" -#define INT_ADJ(SIZE, LSB, MAX_VAL, SHIFT, PRINT_HEX) \ +#define INT_BIAS(SIZE, LSB, MAX_VAL, BIAS, SHIFT, PRINT_HEX) \ { \ static const struct mips_int_operand op = { \ - { OP_INT, SIZE, LSB }, MAX_VAL, 0, SHIFT, PRINT_HEX \ + { OP_INT, SIZE, LSB }, MAX_VAL, BIAS, SHIFT, PRINT_HEX \ }; \ return &op.root; \ } +#define INT_ADJ(SIZE, LSB, MAX_VAL, SHIFT, PRINT_HEX) \ + INT_BIAS(SIZE, LSB, MAX_VAL, 0, SHIFT, PRINT_HEX) + #define UINT(SIZE, LSB) \ INT_ADJ(SIZE, LSB, (1 << (SIZE)) - 1, 0, FALSE)