~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to hw/pxa2xx_timer.c

  • Committer: ths
  • Date: 2007-06-17 15:32:30 UTC
  • Revision ID: git-v1:ffb04fcf089865952592f1f8855c2848d4514a89
Allow relative paths for the interpreter prefix in linux-user emulation.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2984 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This code is licenced under the GPL.
8
8
 */
9
9
 
10
 
#include "hw.h"
11
 
#include "qemu-timer.h"
12
 
#include "sysemu.h"
13
 
#include "pxa.h"
 
10
#include "vl.h"
14
11
 
15
12
#define OSMR0   0x00
16
13
#define OSMR1   0x04
372
369
    pxa2xx_timer_info *s = (pxa2xx_timer_info *) opaque;
373
370
    int i;
374
371
 
375
 
    qemu_put_be32s(f, (uint32_t *) &s->clock);
376
 
    qemu_put_be32s(f, (uint32_t *) &s->oldclock);
 
372
    qemu_put_be32s(f, &s->clock);
 
373
    qemu_put_be32s(f, &s->oldclock);
377
374
    qemu_put_be64s(f, &s->lastload);
378
375
 
379
376
    for (i = 0; i < 4; i ++) {
384
381
        for (i = 0; i < 8; i ++) {
385
382
            qemu_put_be32s(f, &s->tm4[i].tm.value);
386
383
            qemu_put_be32(f, s->tm4[i].tm.level);
387
 
            qemu_put_sbe32s(f, &s->tm4[i].oldclock);
388
 
            qemu_put_sbe32s(f, &s->tm4[i].clock);
 
384
            qemu_put_be32s(f, &s->tm4[i].oldclock);
 
385
            qemu_put_be32s(f, &s->tm4[i].clock);
389
386
            qemu_put_be64s(f, &s->tm4[i].lastload);
390
387
            qemu_put_be32s(f, &s->tm4[i].freq);
391
388
            qemu_put_be32s(f, &s->tm4[i].control);
403
400
    int64_t now;
404
401
    int i;
405
402
 
406
 
    qemu_get_be32s(f, (uint32_t *) &s->clock);
407
 
    qemu_get_be32s(f, (uint32_t *) &s->oldclock);
 
403
    qemu_get_be32s(f, &s->clock);
 
404
    qemu_get_be32s(f, &s->oldclock);
408
405
    qemu_get_be64s(f, &s->lastload);
409
406
 
410
407
    now = qemu_get_clock(vm_clock);
418
415
        for (i = 0; i < 8; i ++) {
419
416
            qemu_get_be32s(f, &s->tm4[i].tm.value);
420
417
            s->tm4[i].tm.level = qemu_get_be32(f);
421
 
            qemu_get_sbe32s(f, &s->tm4[i].oldclock);
422
 
            qemu_get_sbe32s(f, &s->tm4[i].clock);
 
418
            qemu_get_be32s(f, &s->tm4[i].oldclock);
 
419
            qemu_get_be32s(f, &s->tm4[i].clock);
423
420
            qemu_get_be64s(f, &s->tm4[i].lastload);
424
421
            qemu_get_be32s(f, &s->tm4[i].freq);
425
422
            qemu_get_be32s(f, &s->tm4[i].control);