parent
ba1c4c6fee
commit
d203b41ac7
|
@ -1,6 +1,11 @@
|
|||
2018-08-20 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* sh-opc.h (MASK): Simplify.
|
||||
|
||||
2018-07-28 John Darrington <john@darrington.wattle.id.au>
|
||||
|
||||
* s12z-dis.c (bm_decode): Deal with cases where the mode is BM_RESERVED0 or BM_RESERVED1
|
||||
* s12z-dis.c (bm_decode): Deal with cases where the mode is
|
||||
BM_RESERVED0 or BM_RESERVED1
|
||||
* s12z-dis.c (bm_rel_decode): ditto
|
||||
* s12z-dis.c (bm_n_bytes): ditto
|
||||
|
||||
|
|
|
@ -205,10 +205,7 @@ typedef enum
|
|||
sh_dsp_reg_nums;
|
||||
|
||||
/* Return a mask with bits LO to HI (inclusive) set. */
|
||||
#define MASK(LO,HI) ( LO < 1 ? ((1U << (HI + 1)) - 1) \
|
||||
: HI > 30 ? (-1U << LO) \
|
||||
: LO == HI ? (1U << LO) \
|
||||
: (((1U << (HI + 1)) - 1) & (-1U << LO)))
|
||||
#define MASK(LO,HI) ((1U << (HI) << 1) - (1U << (LO)))
|
||||
|
||||
#define arch_sh1_base (1 << 0)
|
||||
#define arch_sh2_base (1 << 1)
|
||||
|
|
Loading…
Reference in New Issue