hw/mips/malta: Add re-usable rng_seed_hex_new() method
commit3a8ff3667187459427eef5c6b1cdb950c563e094
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 12 Apr 2024 07:33:25 +0000 (12 00:33 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 5 Jun 2024 19:14:20 +0000 (5 12:14 -0700)
treee42dc07bd4ea46cb31894bad9e09c41651e92efa
parent10e4927bc4c5ad673e12c0731e6150050cf327de
hw/mips/malta: Add re-usable rng_seed_hex_new() method

sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1.

Extract common code from reinitialize_rng_seed and load_kernel
to rng_seed_hex_new.  Using qemu_hexdump_line both fixes the
deprecation warning and simplifies the code base.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[rth: Use qemu_hexdump_line.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240412073346.458116-7-richard.henderson@linaro.org>
hw/mips/malta.c