|
18 | 18 | from .os.memory import QlMemoryManager |
19 | 19 | from .loader.loader import QlLoader |
20 | 20 |
|
21 | | -from .const import QL_ARCH_ENDIAN, QL_ENDIAN, QL_OS, QL_VERBOSE, QL_ARCH_NONEOS, QL_ARCH_HARDWARE |
| 21 | +from .const import QL_ARCH_ENDIAN, QL_ENDIAN, QL_OS, QL_VERBOSE, QL_ARCH_NONEOS |
22 | 22 | from .exception import QlErrorFileNotFound, QlErrorArch, QlErrorOsType, QlErrorOutput |
23 | 23 | from .utils import * |
24 | 24 | from .core_struct import QlCoreStructs |
@@ -220,25 +220,23 @@ def __init__( |
220 | 220 | self.arch.utils.setup_output() |
221 | 221 |
|
222 | 222 | if (self.archtype not in QL_ARCH_NONEOS): |
223 | | - if (self.archtype not in QL_ARCH_HARDWARE): |
224 | | - self._os = os_setup(self.archtype, self.ostype, self) |
| 223 | + self._os = os_setup(self.archtype, self.ostype, self) |
225 | 224 |
|
226 | | - if stdin is not None: |
227 | | - self._os.stdin = stdin |
| 225 | + if stdin is not None: |
| 226 | + self._os.stdin = stdin |
228 | 227 |
|
229 | | - if stdout is not None: |
230 | | - self._os.stdout = stdout |
| 228 | + if stdout is not None: |
| 229 | + self._os.stdout = stdout |
231 | 230 |
|
232 | | - if stderr is not None: |
233 | | - self._os.stderr = stderr |
| 231 | + if stderr is not None: |
| 232 | + self._os.stderr = stderr |
234 | 233 |
|
235 | 234 | # Run the loader |
236 | 235 | self.loader.run() |
237 | 236 |
|
238 | 237 | if (self.archtype not in QL_ARCH_NONEOS): |
239 | | - if (self.archtype not in QL_ARCH_HARDWARE): |
240 | | - # Add extra guard options when configured to do so |
241 | | - self._init_stop_guard() |
| 238 | + # Add extra guard options when configured to do so |
| 239 | + self._init_stop_guard() |
242 | 240 |
|
243 | 241 | ##################### |
244 | 242 | # Qiling Components # |
@@ -701,9 +699,6 @@ def run(self, begin=None, end=None, timeout=0, count=0, code = None): |
701 | 699 | else: |
702 | 700 | return self.arch.run(code) |
703 | 701 |
|
704 | | - if self.archtype in QL_ARCH_HARDWARE: |
705 | | - return self.arch.run(count=count) |
706 | | - |
707 | 702 | self.write_exit_trap() |
708 | 703 |
|
709 | 704 | # init debugger |
|
0 commit comments