Giter Club home page Giter Club logo

avatar-qemu's People

Contributors

afaerber avatar agraf avatar aliguori avatar aurel32 avatar berrange avatar blueswirl avatar bonzini avatar davidhildenbrand avatar dgibson avatar ebblake avatar edgarigl avatar ehabkost avatar elmarco avatar gkurz avatar huth avatar jan-kiszka avatar jnsnow avatar kevmw avatar kraxel avatar legoater avatar mcayland avatar mstsirkin avatar philmd avatar pm215 avatar rth7680 avatar stefanharh avatar stsquad avatar stweil avatar vivier avatar xanclic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

avatar-qemu's Issues

Problem when compile aarch64-softmmu

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?

x86_64 build: adding remote memory does not work

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.

ARM 'coprocessor' register reads appear to be writing to the wrong location

Working with 6.2, configurable machine, ARM Cortex-M. The problem I believe lies here:

stl_p(buf, env->banked_r13[bank_number(ARM_CPU_MODE_USR)]); return 4;

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.