Revision 3d08ff69 hw/gumstix.c
b/hw/gumstix.c | ||
---|---|---|
48 | 48 |
{ |
49 | 49 |
PXA2xxState *cpu; |
50 | 50 |
DriveInfo *dinfo; |
51 |
int be; |
|
51 | 52 |
|
52 | 53 |
uint32_t connex_rom = 0x01000000; |
53 | 54 |
uint32_t connex_ram = 0x04000000; |
... | ... | |
61 | 62 |
exit(1); |
62 | 63 |
} |
63 | 64 |
|
65 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
66 |
be = 1; |
|
67 |
#else |
|
68 |
be = 0; |
|
69 |
#endif |
|
64 | 70 |
if (!pflash_cfi01_register(0x00000000, qemu_ram_alloc(connex_rom), |
65 |
dinfo->bdrv, sector_len, connex_rom / sector_len, |
|
66 |
2, 0, 0, 0, 0)) {
|
|
71 |
dinfo->bdrv, sector_len, connex_rom / sector_len,
|
|
72 |
2, 0, 0, 0, 0, be)) {
|
|
67 | 73 |
fprintf(stderr, "qemu: Error registering flash memory.\n"); |
68 | 74 |
exit(1); |
69 | 75 |
} |
... | ... | |
82 | 88 |
{ |
83 | 89 |
PXA2xxState *cpu; |
84 | 90 |
DriveInfo *dinfo; |
91 |
int be; |
|
85 | 92 |
|
86 | 93 |
uint32_t verdex_rom = 0x02000000; |
87 | 94 |
uint32_t verdex_ram = 0x10000000; |
... | ... | |
95 | 102 |
exit(1); |
96 | 103 |
} |
97 | 104 |
|
105 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
106 |
be = 1; |
|
107 |
#else |
|
108 |
be = 0; |
|
109 |
#endif |
|
98 | 110 |
if (!pflash_cfi01_register(0x00000000, qemu_ram_alloc(verdex_rom), |
99 |
dinfo->bdrv, sector_len, verdex_rom / sector_len, |
|
100 |
2, 0, 0, 0, 0)) {
|
|
111 |
dinfo->bdrv, sector_len, verdex_rom / sector_len,
|
|
112 |
2, 0, 0, 0, 0, be)) {
|
|
101 | 113 |
fprintf(stderr, "qemu: Error registering flash memory.\n"); |
102 | 114 |
exit(1); |
103 | 115 |
} |
Also available in: Unified diff