Skip to content

Host CPU load with QEMU ports #17690

Closed Answered by agatti
yf13 asked this question in Other
Discussion options

You must be logged in to vote

The QEMU port will spin in ports/qemu/mphalport.c regardless of the architecture, in mp_hal_stdin_rx_chr to be precise.

If you want to lower CPU time, you may achieve that by rewriting the console's UART interaction to be interrupt driven - and I guess you'll then need to implement your own version of MICROPY_INTERNAL_WFE for both Arm and RV32 targets or the interpreter won't process timers/delayed events until there's an incoming keypress.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yf13
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Other
Labels
None yet
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy