qemu-e2k/target-sparc
Thomas Huth a337f295de 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.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-By: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2016-09-13 18:12:34 +03:00
..
Makefile.objs monitor: remove target-specific code from monitor.c 2015-09-16 17:33:32 +02:00
TODO
asi.h target-sparc: Add UA2005 defines to asi.h 2016-07-12 11:02:22 -07:00
cc_helper.c coccinelle: Remove unnecessary variables for function return value 2016-06-20 16:38:13 +02:00
cpu-qom.h target-sparc: make cpu-qom.h not target specific 2016-05-19 16:41:34 +02:00
cpu.c sparc: Use g_memdup() instead of g_new0() + memcpy() 2016-09-13 18:12:34 +03:00
cpu.h target-sparc: Store %asi in TB flags 2016-07-12 11:02:06 -07:00
fop_helper.c target-sparc: Use cpu_loop_exit_restore from helper_check_ieee_exceptions 2016-07-12 11:02:58 -07:00
gdbstub.c qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
helper.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
helper.h target-sparc: Use explicit writes to cpu_fsr 2016-07-12 11:02:52 -07:00
int32_helper.c log: do not unnecessarily include qom/cpu.h 2016-02-03 09:19:10 +00:00
int64_helper.c target-sparc: fix Trap Based Address Register behavior for sparc64 2016-04-15 09:30:40 +01:00
ldst_helper.c target-sparc: Remove helper_ldf_asi, helper_stf_asi 2016-07-12 11:02:48 -07:00
machine.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
mmu_helper.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
monitor.c sparc: Clean up includes 2016-01-29 15:07:22 +00:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
translate.c target-sparc: Elide duplicate updates to fprs 2016-07-12 11:03:01 -07:00
vis_helper.c sparc: Clean up includes 2016-01-29 15:07:22 +00:00
win_helper.c sparc: Clean up includes 2016-01-29 15:07:22 +00:00