Revision a8170e5e hw/palm.c
b/hw/palm.c | ||
---|---|---|
27 | 27 |
#include "loader.h" |
28 | 28 |
#include "exec-memory.h" |
29 | 29 |
|
30 |
static uint32_t static_readb(void *opaque, target_phys_addr_t offset)
|
|
30 |
static uint32_t static_readb(void *opaque, hwaddr offset)
|
|
31 | 31 |
{ |
32 | 32 |
uint32_t *val = (uint32_t *) opaque; |
33 | 33 |
return *val >> ((offset & 3) << 3); |
34 | 34 |
} |
35 | 35 |
|
36 |
static uint32_t static_readh(void *opaque, target_phys_addr_t offset)
|
|
36 |
static uint32_t static_readh(void *opaque, hwaddr offset)
|
|
37 | 37 |
{ |
38 | 38 |
uint32_t *val = (uint32_t *) opaque; |
39 | 39 |
return *val >> ((offset & 1) << 3); |
40 | 40 |
} |
41 | 41 |
|
42 |
static uint32_t static_readw(void *opaque, target_phys_addr_t offset)
|
|
42 |
static uint32_t static_readw(void *opaque, hwaddr offset)
|
|
43 | 43 |
{ |
44 | 44 |
uint32_t *val = (uint32_t *) opaque; |
45 | 45 |
return *val >> ((offset & 0) << 3); |
46 | 46 |
} |
47 | 47 |
|
48 |
static void static_write(void *opaque, target_phys_addr_t offset,
|
|
48 |
static void static_write(void *opaque, hwaddr offset,
|
|
49 | 49 |
uint32_t value) |
50 | 50 |
{ |
51 | 51 |
#ifdef SPY |
Also available in: Unified diff