cpu.h (2161a612b4e1d388046320bc464adefd6bba01a0) | cpu.h (29a0af618ddd21f55df5753c3e16b0625f534b3c) |
---|---|
1/* 2 * TriCore emulation for qemu: main CPU struct. 3 * 4 * Copyright (c) 2012-2014 Bastian Koppelmann C-Lab/University Paderborn 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 199 unchanged lines hidden (view full) --- 208 CPUTriCoreState env; 209}; 210 211static inline TriCoreCPU *tricore_env_get_cpu(CPUTriCoreState *env) 212{ 213 return TRICORE_CPU(container_of(env, TriCoreCPU, env)); 214} 215 | 1/* 2 * TriCore emulation for qemu: main CPU struct. 3 * 4 * Copyright (c) 2012-2014 Bastian Koppelmann C-Lab/University Paderborn 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 199 unchanged lines hidden (view full) --- 208 CPUTriCoreState env; 209}; 210 211static inline TriCoreCPU *tricore_env_get_cpu(CPUTriCoreState *env) 212{ 213 return TRICORE_CPU(container_of(env, TriCoreCPU, env)); 214} 215 |
216#define ENV_GET_CPU(e) CPU(tricore_env_get_cpu(e)) 217 | |
218#define ENV_OFFSET offsetof(TriCoreCPU, env) 219 220hwaddr tricore_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); 221void tricore_cpu_dump_state(CPUState *cpu, FILE *f, int flags); 222 223 224#define MASK_PCXI_PCPN 0xff000000 225#define MASK_PCXI_PIE_1_3 0x00800000 --- 194 unchanged lines hidden --- | 216#define ENV_OFFSET offsetof(TriCoreCPU, env) 217 218hwaddr tricore_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); 219void tricore_cpu_dump_state(CPUState *cpu, FILE *f, int flags); 220 221 222#define MASK_PCXI_PCPN 0xff000000 223#define MASK_PCXI_PIE_1_3 0x00800000 --- 194 unchanged lines hidden --- |