@@ -95,14 +95,14 @@ script, we'll add each of the following lines.
9595
9696First, we need to create an actual ` tsffs ` object to instantiate the fuzzer.
9797
98- ``` simics
98+ ``` python
9999load- module tsffs # You should already have this
100100init- tsffs
101101```
102102
103103Next, we'll set the log level to maximum for demonstration purposes:
104104
105- ``` simics
105+ ``` python
106106tsffs.log- level 4
107107```
108108
@@ -111,7 +111,7 @@ into our UEFI application. This is the default, so these calls can be skipped in
111111usage unless you want to change the defaults, they are just provided here for
112112completeness.
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
121121hangs, and CPU exceptions. we'll enable exceptions 13 for general protection fault and
12212214 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
131131directory in the project by default, so this call can be skipped in real usage unless
132132you 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
139139We'll also * delete* the following code from the ` run.simics ` script:
140140
141- ``` simics
141+ ``` python
142142script- branch {
143143 bp.time.wait- for seconds = 30
144144 quit 0
0 commit comments