summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
487414f)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6530
c046a42c-6fe2-441c-8c8c-
71466251a162
12 files changed:
uint64_t hwpcb;
env = qemu_mallocz(sizeof(CPUAlphaState));
uint64_t hwpcb;
env = qemu_mallocz(sizeof(CPUAlphaState));
- if (!env)
- return NULL;
cpu_exec_init(env);
alpha_translate_init();
tlb_flush(env, 1);
cpu_exec_init(env);
alpha_translate_init();
tlb_flush(env, 1);
if (id == 0)
return NULL;
env = qemu_mallocz(sizeof(CPUARMState));
if (id == 0)
return NULL;
env = qemu_mallocz(sizeof(CPUARMState));
- if (!env)
- return NULL;
cpu_exec_init(env);
if (!inited) {
inited = 1;
cpu_exec_init(env);
if (!inited) {
inited = 1;
static void allocate_mmon_state(CPUState *env)
{
env->mmon_entry = malloc(sizeof (mmon_state));
static void allocate_mmon_state(CPUState *env)
{
env->mmon_entry = malloc(sizeof (mmon_state));
- if (!env->mmon_entry)
- abort();
memset (env->mmon_entry, 0, sizeof (mmon_state));
env->mmon_entry->cpu_env = env;
mmon_head = env->mmon_entry;
memset (env->mmon_entry, 0, sizeof (mmon_state));
env->mmon_entry->cpu_env = env;
mmon_head = env->mmon_entry;
int i;
env = qemu_mallocz(sizeof(CPUCRISState));
int i;
env = qemu_mallocz(sizeof(CPUCRISState));
- if (!env)
- return NULL;
cpu_exec_init(env);
cpu_reset(env);
cpu_exec_init(env);
cpu_reset(env);
static int inited;
env = qemu_mallocz(sizeof(CPUX86State));
static int inited;
env = qemu_mallocz(sizeof(CPUX86State));
- if (!env)
- return NULL;
cpu_exec_init(env);
env->cpu_model_str = cpu_model;
cpu_exec_init(env);
env->cpu_model_str = cpu_model;
kvm_msr_list = qemu_mallocz(sizeof(msr_list) +
msr_list.nmsrs * sizeof(msr_list.indices[0]));
kvm_msr_list = qemu_mallocz(sizeof(msr_list) +
msr_list.nmsrs * sizeof(msr_list.indices[0]));
- if (kvm_msr_list == NULL)
- return 0;
kvm_msr_list->nmsrs = msr_list.nmsrs;
ret = kvm_ioctl(env->kvm_state, KVM_GET_MSR_INDEX_LIST, kvm_msr_list);
kvm_msr_list->nmsrs = msr_list.nmsrs;
ret = kvm_ioctl(env->kvm_state, KVM_GET_MSR_INDEX_LIST, kvm_msr_list);
static int inited;
env = qemu_mallocz(sizeof(CPUM68KState));
static int inited;
env = qemu_mallocz(sizeof(CPUM68KState));
- if (!env)
- return NULL;
cpu_exec_init(env);
if (!inited) {
inited = 1;
cpu_exec_init(env);
if (!inited) {
inited = 1;
if (!def)
return NULL;
env = qemu_mallocz(sizeof(CPUMIPSState));
if (!def)
return NULL;
env = qemu_mallocz(sizeof(CPUMIPSState));
- if (!env)
- return NULL;
env->cpu_model = def;
cpu_exec_init(env);
env->cpu_model = def;
cpu_exec_init(env);
return NULL;
env = qemu_mallocz(sizeof(CPUPPCState));
return NULL;
env = qemu_mallocz(sizeof(CPUPPCState));
- if (!env)
- return NULL;
cpu_exec_init(env);
ppc_translate_init();
env->cpu_model_str = cpu_model;
cpu_exec_init(env);
ppc_translate_init();
env->cpu_model_str = cpu_model;
pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop)
+ 1;
path = qemu_malloc(pathlen);
pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop)
+ 1;
path = qemu_malloc(pathlen);
- if (path == NULL) {
- ret = -ENOMEM;
- goto out;
- }
snprintf(path, pathlen, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop);
snprintf(path, pathlen, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop);
opc_handler_t **tmp;
tmp = malloc(0x20 * sizeof(opc_handler_t));
opc_handler_t **tmp;
tmp = malloc(0x20 * sizeof(opc_handler_t));
- if (tmp == NULL)
- return -1;
fill_new_table(tmp, 0x20);
table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT);
fill_new_table(tmp, 0x20);
table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT);
if (!def)
return NULL;
env = qemu_mallocz(sizeof(CPUSH4State));
if (!def)
return NULL;
env = qemu_mallocz(sizeof(CPUSH4State));
- if (!env)
- return NULL;
env->features = def->features;
cpu_exec_init(env);
sh4_translate_init();
env->features = def->features;
cpu_exec_init(env);
sh4_translate_init();
CPUSPARCState *env;
env = qemu_mallocz(sizeof(CPUSPARCState));
CPUSPARCState *env;
env = qemu_mallocz(sizeof(CPUSPARCState));
- if (!env)
- return NULL;
cpu_exec_init(env);
gen_intermediate_code_init(env);
cpu_exec_init(env);
gen_intermediate_code_init(env);