cpu.h (2161a612b4e1d388046320bc464adefd6bba01a0) | cpu.h (29a0af618ddd21f55df5753c3e16b0625f534b3c) |
---|---|
1/* 2 * OpenRISC virtual CPU header. 3 * 4 * Copyright (c) 2011-2012 Jia Liu <proljc@gmail.com> 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 --- 308 unchanged lines hidden (view full) --- 317 318} OpenRISCCPU; 319 320static inline OpenRISCCPU *openrisc_env_get_cpu(CPUOpenRISCState *env) 321{ 322 return container_of(env, OpenRISCCPU, env); 323} 324 | 1/* 2 * OpenRISC virtual CPU header. 3 * 4 * Copyright (c) 2011-2012 Jia Liu <proljc@gmail.com> 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 --- 308 unchanged lines hidden (view full) --- 317 318} OpenRISCCPU; 319 320static inline OpenRISCCPU *openrisc_env_get_cpu(CPUOpenRISCState *env) 321{ 322 return container_of(env, OpenRISCCPU, env); 323} 324 |
325#define ENV_GET_CPU(e) CPU(openrisc_env_get_cpu(e)) 326 | |
327#define ENV_OFFSET offsetof(OpenRISCCPU, env) 328 329void cpu_openrisc_list(void); 330void openrisc_cpu_do_interrupt(CPUState *cpu); 331bool openrisc_cpu_exec_interrupt(CPUState *cpu, int int_req); 332void openrisc_cpu_dump_state(CPUState *cpu, FILE *f, int flags); 333hwaddr openrisc_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); 334int openrisc_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); --- 95 unchanged lines hidden --- | 325#define ENV_OFFSET offsetof(OpenRISCCPU, env) 326 327void cpu_openrisc_list(void); 328void openrisc_cpu_do_interrupt(CPUState *cpu); 329bool openrisc_cpu_exec_interrupt(CPUState *cpu, int int_req); 330void openrisc_cpu_dump_state(CPUState *cpu, FILE *f, int flags); 331hwaddr openrisc_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); 332int openrisc_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); --- 95 unchanged lines hidden --- |