Skip to content

Commit 7a28b09

Browse files
committed
docs/tutorials/edk2-uefi: use python syntax for Simics scripts
1 parent fc11e9d commit 7a28b09

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/src/tutorials/edk2-uefi/configuring-the-fuzzer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ script, we'll add each of the following lines.
9595

9696
First, we need to create an actual `tsffs` object to instantiate the fuzzer.
9797

98-
```simics
98+
```python
9999
load-module tsffs # You should already have this
100100
init-tsffs
101101
```
102102

103103
Next, we'll set the log level to maximum for demonstration purposes:
104104

105-
```simics
105+
```python
106106
tsffs.log-level 4
107107
```
108108

@@ -111,7 +111,7 @@ into our UEFI application. This is the default, so these calls can be skipped in
111111
usage unless you want to change the defaults, they are just provided here for
112112
completeness.
113113

114-
```simics
114+
```python
115115
@tsffs.start_on_harness = True
116116
@tsffs.stop_on_harness = True
117117
```
@@ -121,7 +121,7 @@ fuzz for. In our case, these are timeouts (we'll set the timeout to 3 seconds) t
121121
hangs, and CPU exceptions. we'll enable exceptions 13 for general protection fault and
122122
14 for page faults to detect out of bounds reads and writes.
123123

124-
```simics
124+
```python
125125
@tsffs.timeout = 3.0
126126
@tsffs.exceptions = [13, 14]
127127
```
@@ -131,14 +131,14 @@ take its corpus from the `corpus` directory and save solutions to the `solutions
131131
directory in the project by default, so this call can be skipped in real usage unless
132132
you want to change the defaults.
133133

134-
```simics
134+
```python
135135
@tsffs.corpus_directory = SIM_lookup_file("%simics%/corpus")
136136
@tsffs.solutions_directory = SIM_lookup_file("%simics%/solutions")
137137
```
138138

139139
We'll also *delete* the following code from the `run.simics` script:
140140

141-
```simics
141+
```python
142142
script-branch {
143143
bp.time.wait-for seconds = 30
144144
quit 0

docs/src/tutorials/edk2-uefi/testing-the-application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Our initial script will load (but not use *yet*) the TSFFS module, then configur
5555
start our simple x86-64 platform and run our UEFI application. In the `project`
5656
directory, create `run.simics`:
5757

58-
```simics
58+
```python
5959
# Load the TSFFS module (to make sure we can load it)
6060
load-module tsffs
6161

0 commit comments

Comments
 (0)