diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2021-07-25 12:05:57 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-07-26 06:56:41 -1000 |
commit | 2f0e10a4866c16e0b6f98fcc87add047200e4896 (patch) | |
tree | 109f1640dd3c651ed972ef45234eed06fd760987 /hw/m68k | |
parent | c8cf47a946200239826e58abc203dcaa4fdbb30c (diff) |
bitops.h: revert db1ffc32dd ("qemu/bitops.h: add bitrev8 implementation")
Commit db1ffc32dd ("qemu/bitops.h: add bitrev8 implementation") introduced
a bitrev8() function to reverse the bit ordering required for storing the
MAC address in the q800 PROM.
This function is not required since QEMU implements its own revbit8()
function which does exactly the same thing. Remove the extraneous
bitrev8() function and switch its only caller in hw/m68k/q800.c to
use revbit8() instead.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210725110557.3007-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/m68k')
-rw-r--r-- | hw/m68k/q800.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c index 6817c8b5d1..ac0a13060b 100644 --- a/hw/m68k/q800.c +++ b/hw/m68k/q800.c @@ -334,7 +334,7 @@ static void q800_init(MachineState *machine) prom = memory_region_get_ram_ptr(dp8393x_prom); checksum = 0; for (i = 0; i < 6; i++) { - prom[i] = bitrev8(nd_table[0].macaddr.a[i]); + prom[i] = revbit8(nd_table[0].macaddr.a[i]); checksum ^= prom[i]; } prom[7] = 0xff - checksum; |