cpu.h (2161a612b4e1d388046320bc464adefd6bba01a0) cpu.h (29a0af618ddd21f55df5753c3e16b0625f534b3c)
1/*
2 * SH4 emulation
3 *
4 * Copyright (c) 2005 Samuel Tardieu
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

--- 198 unchanged lines hidden (view full) ---

207 CPUSH4State env;
208};
209
210static inline SuperHCPU *sh_env_get_cpu(CPUSH4State *env)
211{
212 return container_of(env, SuperHCPU, env);
213}
214
1/*
2 * SH4 emulation
3 *
4 * Copyright (c) 2005 Samuel Tardieu
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

--- 198 unchanged lines hidden (view full) ---

207 CPUSH4State env;
208};
209
210static inline SuperHCPU *sh_env_get_cpu(CPUSH4State *env)
211{
212 return container_of(env, SuperHCPU, env);
213}
214
215#define ENV_GET_CPU(e) CPU(sh_env_get_cpu(e))
216
217#define ENV_OFFSET offsetof(SuperHCPU, env)
218
219void superh_cpu_do_interrupt(CPUState *cpu);
220bool superh_cpu_exec_interrupt(CPUState *cpu, int int_req);
221void superh_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
222hwaddr superh_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr);
223int superh_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg);
224int superh_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);

--- 182 unchanged lines hidden ---
215#define ENV_OFFSET offsetof(SuperHCPU, env)
216
217void superh_cpu_do_interrupt(CPUState *cpu);
218bool superh_cpu_exec_interrupt(CPUState *cpu, int int_req);
219void superh_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
220hwaddr superh_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr);
221int superh_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg);
222int superh_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);

--- 182 unchanged lines hidden ---