[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv3 02/14] unicore32-softmmu: Add coprocessor 0(sy
Re: [Qemu-devel] [PATCHv3 02/14] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support
Mon, 25 Jun 2012 11:23:25 +0800 (CST)
>>> > +unrecognized:
>>> > + �� ��cpu_abort(env, "Wrong register (%d) or wrong operation (%d) in
>>> > + �� �� �� �� �� ��creg, cop);
>>> The call to cpu_abort() would mean that the guest is able to terminate
>>> QEMU at will, which is not OK. What does real HW do?
>> In my opinion, I just want to terminate qemu when any unhandled or
>> unknown operations happen.
> This can make the emulator vulnerable in the security sense. Probably
> Unicore CPUs are not used now in an environment where the guest can
> not be trusted (like cloud computing), but who knows the future?
Is it proper to print such information to monitor? by using monitor_printf().
>>> The printout should be enabled only for DEBUG_UC32.
>> Here, I just want to print a char in the text console.
>> I tried printw and addch under curses environment, but their color
>> schemes had some problems in my server, and I must call scrollok() at
>> every new-line. (scrl() didn't work) So, I left printf here to output a
>> character from ocd_console in kernel, and it works.
> It breaks the abstraction layer. CPUs very rarely have any direct
> instructions for high level I/O (like console output), instead I/O is
> handled via devices which are accessible via MMIO (or I/O ports for
> For debugging, anything can be possible, but that's why I suggested
> using DEBUG_UC32.
I've found my errors. I'm going to use waddch() here. Please see my next
Thanks & Regards,
[Qemu-devel] [PATCHv3 01/14] unicore32-softmmu: Add unicore32-softmmu build support, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 04/14] target-unicore32: Drop UC32_CPUID macros, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 03/14] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 06/14] unicore32-softmmu: Make sure that kernel can access user space, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support, Guan Xuetao, 2012/06/18