~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to target/unicore32/cpu-qom.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * QEMU UniCore32 CPU
 
3
 *
 
4
 * Copyright (c) 2012 SUSE LINUX Products GmbH
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 2 as
 
8
 * published by the Free Software Foundation, or (at your option) any
 
9
 * later version. See the COPYING file in the top-level directory.
 
10
 */
 
11
#ifndef QEMU_UC32_CPU_QOM_H
 
12
#define QEMU_UC32_CPU_QOM_H
 
13
 
 
14
#include "qom/cpu.h"
 
15
 
 
16
#define TYPE_UNICORE32_CPU "unicore32-cpu"
 
17
 
 
18
#define UNICORE32_CPU_CLASS(klass) \
 
19
    OBJECT_CLASS_CHECK(UniCore32CPUClass, (klass), TYPE_UNICORE32_CPU)
 
20
#define UNICORE32_CPU(obj) \
 
21
    OBJECT_CHECK(UniCore32CPU, (obj), TYPE_UNICORE32_CPU)
 
22
#define UNICORE32_CPU_GET_CLASS(obj) \
 
23
    OBJECT_GET_CLASS(UniCore32CPUClass, (obj), TYPE_UNICORE32_CPU)
 
24
 
 
25
/**
 
26
 * UniCore32CPUClass:
 
27
 * @parent_realize: The parent class' realize handler.
 
28
 *
 
29
 * A UniCore32 CPU model.
 
30
 */
 
31
typedef struct UniCore32CPUClass {
 
32
    /*< private >*/
 
33
    CPUClass parent_class;
 
34
    /*< public >*/
 
35
 
 
36
    DeviceRealize parent_realize;
 
37
} UniCore32CPUClass;
 
38
 
 
39
typedef struct UniCore32CPU UniCore32CPU;
 
40
 
 
41
#endif