1 |
|
/* |
2 |
|
* name_registry.cpp - Name Registry handling |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
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 as published by |
250 |
|
u32.set_value(128); |
251 |
|
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
252 |
|
break; |
253 |
+ |
case 12: // 7400, 7410 |
254 |
+ |
case 0x800c: |
255 |
+ |
u32.set_value(32); |
256 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-block-size", u32.ptr(), 4); |
257 |
+ |
u32.set_value(128); |
258 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-sets", u32.ptr(), 4); |
259 |
+ |
u32.set_value(0x8000); |
260 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "d-cache-size", u32.ptr(), 4); |
261 |
+ |
u32.set_value(32); |
262 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-block-size", u32.ptr(), 4); |
263 |
+ |
u32.set_value(128); |
264 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-sets", u32.ptr(), 4); |
265 |
+ |
u32.set_value(0x8000); |
266 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "i-cache-size", u32.ptr(), 4); |
267 |
+ |
u32.set_value(64); |
268 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "tlb-sets", u32.ptr(), 4); |
269 |
+ |
u32.set_value(128); |
270 |
+ |
RegistryPropertyCreate(power_pc.ptr(), "tlb-size", u32.ptr(), 4); |
271 |
+ |
break; |
272 |
|
default: |
273 |
|
break; |
274 |
|
} |
321 |
|
} |
322 |
|
|
323 |
|
// Main routine must be executed in PPC mode |
305 |
– |
#if EMULATED_PPC |
324 |
|
ExecuteNative(NATIVE_PATCH_NAME_REGISTRY); |
307 |
– |
#else |
308 |
– |
ExecutePPC(DoPatchNameRegistry); |
309 |
– |
#endif |
325 |
|
} |