fuzz/x86_emulate: actually use cpu_regs input
authorGeorge Dunlap <george.dunlap@citrix.com>
Mon, 9 Oct 2017 14:03:53 +0000 (16:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 14:03:53 +0000 (16:03 +0200)
commit581c3e874c300695ddfa8b2a95675a42ebf97301
tree123df394ee10e84dd255fdd9692e289204b3b8bb
parent8993572b9c165644eff6fcd249d6170a16f4de44
fuzz/x86_emulate: actually use cpu_regs input

Commit c07574b reorganized the way fuzzing was done, explicitly
creating a structure that the input data would be copied into.

Unfortunately, the cpu register state used by the emulator is on the
stack; it's cleared, but data is never copied into it.

If we're explicitly setting an entirely new cpu_regs struct for each
new input anyway, there's no need to have two copies around anymore;
just point to the one in the data structure.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/fuzz/x86_instruction_emulator/fuzz-emul.c