mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Simplify arch peripheral name
This commit is contained in:
@@ -101,7 +101,7 @@ gd32vf103 = {
|
||||
"ECLIC": {
|
||||
"base": 0xd2000000,
|
||||
"struct": "GD32VF1xxEclic",
|
||||
"type": "core peripheral"
|
||||
"type": "core"
|
||||
},
|
||||
"EXMC": {
|
||||
"base": 0xa0000000,
|
||||
|
||||
@@ -137,7 +137,7 @@ class QlLoaderMCU(QlLoader):
|
||||
base = args['base']
|
||||
self.ql.hw.setup_mmio(base, size, info=f'[{name}]')
|
||||
|
||||
if memtype == 'core peripheral':
|
||||
if memtype == 'core':
|
||||
self.ql.hw.create(name.lower())
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"kwargs": {
|
||||
"dev_id": 0x413,
|
||||
},
|
||||
"type": "core peripheral"
|
||||
"type": "peripheral"
|
||||
},
|
||||
"DMA1": {
|
||||
"base": 0x40026000,
|
||||
@@ -143,7 +143,7 @@
|
||||
"NVIC": {
|
||||
"base": 0xe000e100,
|
||||
"struct": "CortexM4Nvic",
|
||||
"type": "core peripheral"
|
||||
"type": "core"
|
||||
},
|
||||
"PERIP": {
|
||||
"base": 0x40000000,
|
||||
@@ -186,7 +186,7 @@
|
||||
"SCB": {
|
||||
"base": 0xe000ed00,
|
||||
"struct": "CortexM4Scb",
|
||||
"type": "core peripheral"
|
||||
"type": "core"
|
||||
},
|
||||
"SDIO": {
|
||||
"base": 0x40012c00,
|
||||
@@ -260,7 +260,7 @@
|
||||
"SYSTICK": {
|
||||
"base": 0xe000e010,
|
||||
"struct": "CortexM4SysTick",
|
||||
"type": "core peripheral"
|
||||
"type": "core"
|
||||
},
|
||||
"TIM1": {
|
||||
"base": 0x40010000,
|
||||
|
||||
@@ -331,6 +331,7 @@ class MCUTest(unittest.TestCase):
|
||||
ql.hw.create('gpiod')
|
||||
ql.hw.create('spi1')
|
||||
ql.hw.create('crc')
|
||||
ql.hw.create('dbgmcu')
|
||||
|
||||
flag = False
|
||||
def indicator(ql):
|
||||
|
||||
Reference in New Issue
Block a user