unicorn/qemu/target-sparc
Thomas Huth aed5df31b7
sparc: Use g_memdup() instead of g_new0() + memcpy()
There is no need to make sure that the memory is zeroed after the
allocation if we also immediatly fill the whole buffer afterwards
with memcpy(). Thus g_new0 should be g_new instead. But since we
are also doing a memcpy() here, we can also simply replace both
with g_memdup() instead.

Backports commit a337f295defad7eb977da4d6317cf70f7f2fa4b4 from qemu
2018-02-25 23:19:44 -05:00
..
asi.h target-sparc: Add UA2005 defines to asi.h 2018-02-25 17:32:46 -05:00
cc_helper.c sparc: Clean up includes 2018-02-19 00:52:41 -05:00
cpu-qom.h target-sparc: make cpu-qom.h not target specific 2018-02-24 01:00:56 -05:00
cpu.c sparc: Use g_memdup() instead of g_new0() + memcpy() 2018-02-25 23:19:44 -05:00
cpu.h target-sparc: Store %asi in TB flags 2018-02-25 05:17:21 -05:00
fop_helper.c target-sparc: Use cpu_loop_exit_restore from helper_check_ieee_exceptions 2018-02-25 19:12:36 -05:00
helper.c target-sparc: Remove softint as a TCG global 2018-02-25 04:49:27 -05:00
helper.h target-sparc: Use explicit writes to cpu_fsr 2018-02-25 18:55:07 -05:00
int32_helper.c sparc: Clean up includes 2018-02-19 00:52:41 -05:00
int64_helper.c target-sparc: fix Trap Based Address Register behavior for sparc64 2018-02-23 13:39:59 -05:00
ldst_helper.c target-sparc: Remove helper_ldf_asi, helper_stf_asi 2018-02-25 18:32:35 -05:00
Makefile.objs cleanup Sparc unused code 2017-01-23 12:34:00 +08:00
mmu_helper.c cpu: move exec-all.h inclusion out of cpu.h 2018-02-24 02:39:08 -05:00
TODO import 2015-08-21 15:04:50 +08:00
translate.c tcg: Reorg TCGOp chaining 2018-02-25 21:44:50 -05:00
unicorn64.c qemu-common: push cpu.h inclusion out of qemu-common.h 2018-02-24 01:50:56 -05:00
unicorn.c qemu-common: push cpu.h inclusion out of qemu-common.h 2018-02-24 01:50:56 -05:00
unicorn.h New feature: registers can be bulk saved/restored in an opaque blob 2016-08-20 04:14:07 -07:00
vis_helper.c sparc: Clean up includes 2018-02-19 00:52:41 -05:00
win_helper.c sparc: Clean up includes 2018-02-19 00:52:41 -05:00