target/m68k: increase size of m68k CPU features from uint32_t to uint64_t
commit2dc7bf63cf77d23b287c8d78628d62046fba1bf4
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 25 Sep 2022 13:48:03 +0000 (25 14:48 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 26 Sep 2022 21:37:04 +0000 (26 23:37 +0200)
tree388bfd3e601692ddaba612a3ed9ec5dbf74748a1
parent99d6b11b5b44d7dd64f4cb1973184e40a4a174f8
target/m68k: increase size of m68k CPU features from uint32_t to uint64_t

There are already 32 feature bits in use, so change the size of the m68k
CPU features to uint64_t (along with the associated m68k_feature()
functions) to allow up to 64 feature bits to be used.

At the same time make use of the BIT_ULL() macro when reading/writing
the CPU feature bits to improve readability, and also update m68k_feature()
to return a bool rather than an int.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220925134804.139706-2-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/cpu.c
target/m68k/cpu.h