mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
c8cf47a946
commit
2f0e10a486
2 changed files with 1 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue