X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Ffrv-ibld.c;h=61db1bf86e9e773aa4657a8410ff79f9a2d107bc;hb=85b0f90c2b372f3d4dc33b0e3596ff813125f72d;hp=d628fd425cb675bda4744607bcfa802f6d4d701f;hpb=fe8afbc48fd3fba73600670fd2b0fcbfd45c440a;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/frv-ibld.c b/opcodes/frv-ibld.c index d628fd425c..61db1bf86e 100644 --- a/opcodes/frv-ibld.c +++ b/opcodes/frv-ibld.c @@ -138,7 +138,7 @@ insert_normal (CGEN_CPU_DESC cd, if (length == 0) return NULL; - if (word_length > 32) + if (word_length > 8 * sizeof (CGEN_INSN_INT)) abort (); /* For architectures with insns smaller than the base-insn-bitsize, @@ -442,7 +442,7 @@ extract_normal (CGEN_CPU_DESC cd, return 1; } - if (word_length > 32) + if (word_length > 8 * sizeof (CGEN_INSN_INT)) abort (); /* For architectures with insns smaller than the insn-base-bitsize, @@ -469,7 +469,7 @@ extract_normal (CGEN_CPU_DESC cd, { unsigned char *bufp = ex_info->insn_bytes + word_offset / 8; - if (word_length > 32) + if (word_length > 8 * sizeof (CGEN_INSN_INT)) abort (); if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0)