?????? Why QEMU translates one instruction to a TB??

2020-09-18 Thread casmac
*4*/ ary_sect_chain[i].region_size, error_fatal); //region_size is fixed as specified in CPU manual , region_sizechain_size*4 best regards, xiaolei On 9/17/20 8:25 AM, casmac wrote: Hi all, We try to add DSP architecure to QEMU 4.2. To load the COFF format object file, we have

Why QEMU translates one instruction to a TB??

2020-09-17 Thread casmac
Hi all, We try to add DSP architecure to QEMU 4.2. To load the COFF format object file, we have added loader code to load content from the object file. The rom_add_blob() function is used. We firstly analyze the COFF file to figure out which sections are chained together(so each chain

Why QEMU treats each instruction as one translation block?

2020-09-17 Thread casmac
Hi all, We try to add DSP architecure to QEMU 4.2. To load the COFF format object file, we have added loader code to load content from the object file. The rom_add_blob() function is used. We firstly analyze the COFF file to figure out which sections are chained together(so each chain forms

Re: Implement standard file operation with QEMU

2020-07-17 Thread casmac
Hello Phil, What I want to realize is to be able to call standard file operations (open, read, write etc) in the application program, and execute such programs in QEMU. But I am building under system mode. TI provide copilation toolchain and a library that provide partial functionality from

Implement standard file operation with QEMU

2020-07-15 Thread casmac
Hi all, I am trying to implment standard file operation (stdio) with QEMU for DSP architecture. The manufacture (TI) provides a runtime library that support posix standard IO, but it left the device level implmentation as hook function calls, like in the library source , it contains

re??[Bug 1885827] Re: building plugin failed on Windows with mingw

2020-07-03 Thread casmac
, libdl.a, libdl.dll.a in C:\msys64\mingw64\include. dlfcn.h in C:\msys64\mingw64\include. regards, xiaolei -- -- :"Emilio G. Cota"<1885...@bugs.launchpad.net; :2020??7??4??(??) 11:16:"casmac"<1482995...@qq.com; :

RE?? How to build QEMU plugin on Windows with mingw

2020-07-02 Thread casmac
egards, xiaolei --- casmac writes: > Hi all, > I want to build QEMU 4.2.0 with the plugin module on > Windows 7 with Mingw, but the building process faild. I'm afraid I've never tried with mingw... that said: The step I follow is listed below: > 1. create "dsp_build" diret

How to build QEMU plugin on Windows with mingw

2020-07-02 Thread casmac
Hi all, I want to build QEMU 4.2.0 with the plugin module on Windows 7 with Mingw, but the building process faild. The step I follow is listed below: 1. create "dsp_build" diretory under source file folder 2. change directory to dsp_build , and run ../configure --target-list=dsp-softmmu

Building plugin failed on Windows with mingw

2020-06-24 Thread casmac
Hi all, I want to build QEMU 4.2.0 with the plugin module on Windows 7 with Mingw, but the building process faild. The step I follow is listed below: 1. create "dsp_build" diretory under source file folder 2. change directory to dsp_build , and run ../configure --target-list=dsp-softmmu

Re: how to build QEMU with the peripheral device modules

2020-06-23 Thread casmac
Hi , Thanks for the hints. I get better understanding to the kconfig tool now. I added "select TI_DMA" in my DSP kconfig file. It is done. best regards, xiaolei --Original-- From:"Philippe Mathieu-Daudé"

how to build QEMU with the peripheral device modules

2020-06-19 Thread casmac
Hi All, I am trying to add a DMA peripheral module. In hw/dma directory, a file ti_dma.c is added. Also, in hw/dma/kconfig, I added the following lines: config TI_DMA bool In hw/dma/makefile.ojb, added one line: common-obj-$(CONFIG_TI_DMA) += ti_dma.o However, ti_dma.c is not

Re:RE: GDB get wrong debug infos on TI DSP architecture extension

2020-05-29 Thread casmac
Hi, Thanks for the hints!! I put "-d trace:gdbstub_io_command,trace:gdbstub_io_reply" to command line, get the following from QEMU at the beginning when gdb starts, is there anything went wrong? 6792@1590734139.390330:gdbstub_io_command Received:

Re: GDB get wrong debug infos on TI DSP architecture extension

2020-05-27 Thread casmac
Hi, Thank you for forwarding my question to developers and sharing the C6x implementation. Perhaps I should follow up with another problem I encountered. The senerio is the emulator keeps running eventhough the program it emulates has already exited. And it keeps retrieving instructions which

GDB get wrong debug infos on TI DSP architecture extension

2020-05-27 Thread casmac
Hi all, I am working on a TI DSP architecture extension for QEMU. Now, we are adding GDB debugging features. We have done the following, but not sure we are on the right track : - add a xml description file in gdb-xml, without understanding the purpose of the file, why some architectures

re?? how to extend to load COFF executable image file

2020-05-14 Thread casmac
Hello, Thanks for the detailed explaination and insightful advise!! I firstly give a try to use objcopy from GNU binutils, but it seems the COFF file I am work on (which is generated by TI's CCS IDE) cannot be recognized. The COFF format used by TI sllightly differs from GNU's definition. So

how to run qemu test

2020-05-08 Thread casmac
Hi all, I am having trouble running qemu tests. basically ,can not run check-tcg and check-unit. Before executing the tests, I did the configuration??configure --target-list=sparc-softmmu --cross-prefix=x86_64-w64-mingw32- --enable-gtk --enable-sdl --enable-debug The source code is built