avatartwo / avatar-qemu Goto Github PK
View Code? Open in Web Editor NEWQEmu backend for avatar²
License: Other
QEmu backend for avatar²
License: Other
I'm sorry to bother you, but there is some problems when i compiling the qemu-system-aarch64
the wrong code is:
LINK qemu-system-aarch64 hw/avatar/interrupts.o: In function `avatar_armv7m_nvic_forward_write': /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:58: undefined reference to `get_current_pc' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:63: undefined reference to `rmem_tx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:63: undefined reference to `qemu_avatar_mq_send' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:64: undefined reference to `rmem_rx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:64: undefined reference to `qemu_avatar_mq_receive' hw/avatar/interrupts.o: In function `qmp_avatar_armv7m_enable_irq': /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:88: undefined reference to `rmem_rx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:92: undefined reference to `rmem_tx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:79: undefined reference to `qemu_avatar_mq_open_read' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:84: undefined reference to `qemu_avatar_mq_open_write' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:88: undefined reference to `rmem_rx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:89: undefined reference to `rmem_rx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:90: undefined reference to `qemu_avatar_mq_open_read' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:92: undefined reference to `rmem_tx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:93: undefined reference to `rmem_tx_queue_ref' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:94: undefined reference to `qemu_avatar_mq_open_write' hw/avatar/interrupts.o: In function `avatar_armv7m_exception_exit': /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:147: undefined reference to `qemu_avatar_mq_send' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:148: undefined reference to `qemu_avatar_mq_receive' hw/avatar/interrupts.o: In function `avatar_armv7m_exception_enter': /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:171: undefined reference to `qemu_avatar_mq_send' /home/michael/.avatar2/avatar-qemu/hw/avatar/interrupts.c:172: undefined reference to `qemu_avatar_mq_receive' collect2: error: ld returned 1 exit status Makefile:208: recipe for target 'qemu-system-aarch64' failed make: *** [qemu-system-aarch64] Error 1
Could you please help me about that?
Hello! I got an issue where I can't add remote memory. If I try to add remote memory, I get the following message:
ERROR:/<...>/avatar-qemu/qom/object.c:689:object_new_with_type: assertion failed: (type != NULL)
I am on the branch dev/qemu-5.1.
Working with 6.2, configurable machine, ARM Cortex-M. The problem I believe lies here:
avatar-qemu/hw/avatar/arm_helper.c
Line 80 in a487945
The buf
passed to banked_gdb_set_reg
is a uint8_t *
and this works correctly. However, the buf
passed to banked_gdb_get_reg
is actually a GByteArray *
. The stl_p
operation (eventually translated to a memcpy call) writes 4 bytes to the destination of the pointer... which is overwriting the pointer contained in the first member of the GByteArray
structure and not actually storing to the byte array. Furthermore, it does not update the length field of the GByteArray
. Shortly thereafter, qemu-system-arm
terminates with a segmentation violation.
This is pretty easy to reproduce: start the emulator with an appropriate configuration, then (assuming gdb port 1234) connect with arm-none-eabi-gdb
:
target remote :1234
info reg
The correct operation here is probably just gdb_get_reg32
.
QEMU 4.2.0 will be released very soon, with a lot of improvements since 3.1.0 you use.
See the full Changelog, especially the TCG Plugins feature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.