Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
risc-v-qemu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projekt Telematik SS23 QEMU
risc-v-qemu
Commits
e8314358
Commit
e8314358
authored
2 years ago
by
davip00
Browse files
Options
Downloads
Patches
Plain Diff
Ensure unsupported arguments aren't passed when starting ESP32-C3
parent
0a3b062c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hw/riscv/esp32_c3.c
+18
-0
18 additions, 0 deletions
hw/riscv/esp32_c3.c
with
18 additions
and
0 deletions
hw/riscv/esp32_c3.c
+
18
−
0
View file @
e8314358
...
@@ -73,6 +73,24 @@ static void esp32_c3_machine_state_init(MachineState *mstate)
...
@@ -73,6 +73,24 @@ static void esp32_c3_machine_state_init(MachineState *mstate)
error_report
(
"This board can't load firmware"
);
error_report
(
"This board can't load firmware"
);
exit
(
1
);
exit
(
1
);
}
}
if
(
mstate
->
kernel_filename
)
{
// Can't load a Linux-style kernel on an MCU
error_report
(
"-device loader,file=<filename> must be used instead of -kernel"
);
exit
(
1
);
}
if
(
mstate
->
fdt
)
{
// Can't load a device tree on an MCU
error_report
(
"-dtb is not supported on this board"
);
exit
(
1
);
}
if
(
mstate
->
initrd_filename
)
{
// Can't load an initrd on an MCU
error_report
(
"-initrd is not supported on this board"
);
exit
(
1
);
}
}
}
static
void
esp32_c3_machine_instance_init
(
Object
*
obj
)
static
void
esp32_c3_machine_instance_init
(
Object
*
obj
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment