lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 91d5ad6 was cfad878, checked in by Martin Decky <martin@…>, 20 years ago |
|
preliminary Simics 3.0 configuration for Simics
|
-
Property mode
set to
100644
|
|
File size:
763 bytes
|
| Line | |
|---|
| 1 | #
|
|---|
| 2 | # Simics 3.0 PPC32 simple configuration
|
|---|
| 3 | #
|
|---|
| 4 |
|
|---|
| 5 | $cpu_class = "ppc750"
|
|---|
| 6 | $freq_mhz = 500
|
|---|
| 7 | $image = "image.boot"
|
|---|
| 8 | $image_offset = -0x7a000000
|
|---|
| 9 |
|
|---|
| 10 | add-directory "%simics%/targets/ppc64-simple/images"
|
|---|
| 11 |
|
|---|
| 12 | import-std-components
|
|---|
| 13 | import-ppc-simple-components
|
|---|
| 14 |
|
|---|
| 15 | $system = (create-ppc-simple cpu_class = $cpu_class
|
|---|
| 16 | cpu_frequency = $freq_mhz
|
|---|
| 17 | memory_megs = 256)
|
|---|
| 18 |
|
|---|
| 19 | $cpu = ($system.get-component-object "cpu")
|
|---|
| 20 |
|
|---|
| 21 | $system.connect uart0 (create-std-text-console)
|
|---|
| 22 |
|
|---|
| 23 | instantiate-components
|
|---|
| 24 |
|
|---|
| 25 | $start = (load-binary $image $image_offset)
|
|---|
| 26 | $cpu->msr = ($cpu->msr | (1 << 13) | (1 << 5) | (1 << 4))
|
|---|
| 27 | $cpu.set-pc $start - $image_offset
|
|---|
| 28 |
|
|---|
| 29 | @itlb = conf.cpu0.itlb
|
|---|
| 30 | @itlb[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]
|
|---|
| 31 | @conf.cpu0.itlb = itlb
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.