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

« back to all changes in this revision

Viewing changes to hw/nvram/eeprom93xx.c

  • 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:
94
94
   This is a Big hack, but it is how the old state did it.
95
95
 */
96
96
 
97
 
static int get_uint16_from_uint8(QEMUFile *f, void *pv, size_t size)
 
97
static int get_uint16_from_uint8(QEMUFile *f, void *pv, size_t size,
 
98
                                 VMStateField *field)
98
99
{
99
100
    uint16_t *v = pv;
100
101
    *v = qemu_get_ubyte(f);
101
102
    return 0;
102
103
}
103
104
 
104
 
static void put_unused(QEMUFile *f, void *pv, size_t size)
 
105
static int put_unused(QEMUFile *f, void *pv, size_t size, VMStateField *field,
 
106
                      QJSON *vmdesc)
105
107
{
106
108
    fprintf(stderr, "uint16_from_uint8 is used only for backwards compatibility.\n");
107
109
    fprintf(stderr, "Never should be used to write a new state.\n");
108
110
    exit(0);
 
111
 
 
112
    return 0;
109
113
}
110
114
 
111
115
static const VMStateInfo vmstate_hack_uint16_from_uint8 = {