unicorn/qemu/target
Markus Armbruster f656cd91ec
util/cutils: New qemu_strtosz_metric()
To parse numbers with metric suffixes, we use

qemu_strtosz_suffix_unit(nptr, &eptr, QEMU_STRTOSZ_DEFSUFFIX_B, 1000)

Capture this in a new function for legibility:

qemu_strtosz_metric(nptr, &eptr)

Replace test_qemu_strtosz_suffix_unit() by test_qemu_strtosz_metric().

Rename qemu_strtosz_suffix_unit() to do_strtosz() and give it internal
linkage.

Backports commit d2734d2629266006b0413433778474d5801c60be from qemu
2018-03-02 08:47:40 -05:00
..
arm target-arm: Enable vPMU support under TCG mode 2018-03-02 07:58:48 -05:00
i386 util/cutils: New qemu_strtosz_metric() 2018-03-02 08:47:40 -05:00
m68k Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00
mips target-mips: Provide function to test if a CPU supports an ISA 2018-03-02 08:20:19 -05:00
sparc Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00