qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel]  BiteSizedTasks: API conversion
@ 2018-03-12 11:24 Su Hang
  2018-03-12 11:40 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Su Hang @ 2018-03-12 11:24 UTC (permalink / raw)
  To: thomas huth; +Cc: qemu-devel

Dear Thomas,
I'm tring to work on this job:
BiteSizedTasks:
    API conversion:
        Replace calls to functions named cpu_physical_memory_* with address_space_*.
When I try to replace
`cpu_physical_memory_write_rom(rom->as, rom->addr, rom->data, rom->datasize);`
with
`address_space_write_rom(rom->as, rom->addr, rom->data, rom->datasize);`
gcc complains about:
"""
/home/darcy/workstation/qemu/hw/core/loader.c: In function ‘rom_reset’:
/home/darcy/workstation/qemu/hw/core/loader.c:1098:12: error: implicit declaration of function ‘address_space_write_rom’ [-Werror=implicit-function-declaration]
            address_space_write_rom(rom->as, rom->addr, rom->data,
            ^
/home/darcy/workstation/qemu/hw/core/loader.c:1098:12: error: nested extern declaration of ‘address_space_write_rom’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
/home/darcy/workstation/qemu/rules.mak:66: recipe for target 'hw/core/loader.o' failed
make: *** [hw/core/loader.o] Error 1
"""

Then I use `ag address_space_write_rom` in qemu's root directory,
it failed to find any function named `address_space_write_rom`.

By the way, sorry I don't find tool like `WikiBlame`, to help me find
who add this task. So I can't CC others but you.

Best,
Su Hang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-12 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 11:24 [Qemu-devel] BiteSizedTasks: API conversion Su Hang
2018-03-12 11:40 ` Peter Maydell
2018-03-12 11:56   ` Su Hang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).