mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
cpu: Move opaque field from CPU_COMMON to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
27103424c4
commit
0429a97195
13 changed files with 72 additions and 48 deletions
|
@ -2621,7 +2621,8 @@ static int write_note(struct memelfnote *men, int fd)
|
|||
|
||||
static void fill_thread_info(struct elf_note_info *info, const CPUArchState *env)
|
||||
{
|
||||
TaskState *ts = (TaskState *)env->opaque;
|
||||
CPUState *cpu = ENV_GET_CPU((CPUArchState *)env);
|
||||
TaskState *ts = (TaskState *)cpu->opaque;
|
||||
struct elf_thread_status *ets;
|
||||
|
||||
ets = g_malloc0(sizeof (*ets));
|
||||
|
@ -2650,8 +2651,8 @@ static int fill_note_info(struct elf_note_info *info,
|
|||
long signr, const CPUArchState *env)
|
||||
{
|
||||
#define NUMNOTES 3
|
||||
CPUState *cpu = NULL;
|
||||
TaskState *ts = (TaskState *)env->opaque;
|
||||
CPUState *cpu = ENV_GET_CPU((CPUArchState *)env);
|
||||
TaskState *ts = (TaskState *)cpu->opaque;
|
||||
int i;
|
||||
|
||||
info->notes = g_malloc0(NUMNOTES * sizeof (struct memelfnote));
|
||||
|
@ -2775,7 +2776,8 @@ static int write_note_info(struct elf_note_info *info, int fd)
|
|||
*/
|
||||
static int elf_core_dump(int signr, const CPUArchState *env)
|
||||
{
|
||||
const TaskState *ts = (const TaskState *)env->opaque;
|
||||
const CPUState *cpu = ENV_GET_CPU((CPUArchState *)env);
|
||||
const TaskState *ts = (const TaskState *)cpu->opaque;
|
||||
struct vm_area_struct *vma = NULL;
|
||||
char corefile[PATH_MAX];
|
||||
struct elf_note_info info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue