Re: [Qemu-devel] [PATCH] ppce500_spin: Replace assert by hw_error (fixes compiler warning)

2012-04-30 Thread Andreas Färber
Am 30.04.2012 10:54, schrieb Alexander Graf: > > On 28.04.2012, at 17:52, Stefan Weil wrote: > >> The default case in function spin_read should never be reached, >> therefore the old code used assert(0) to abort QEMU. >> >> This does not work when QEMU is compiled with macro NDEBUG defined. >> In

Re: [Qemu-devel] [PATCH] ppce500_spin: Replace assert by hw_error (fixes compiler warning)

2012-04-30 Thread Stefan Weil
Am 30.04.2012 10:54, schrieb Alexander Graf: On 28.04.2012, at 17:52, Stefan Weil wrote: The default case in function spin_read should never be reached, therefore the old code used assert(0) to abort QEMU. This does not work when QEMU is compiled with macro NDEBUG defined. In this case (and al

Re: [Qemu-devel] [PATCH] ppce500_spin: Replace assert by hw_error (fixes compiler warning)

2012-04-30 Thread Alexander Graf
On 28.04.2012, at 17:52, Stefan Weil wrote: > The default case in function spin_read should never be reached, > therefore the old code used assert(0) to abort QEMU. > > This does not work when QEMU is compiled with macro NDEBUG defined. > In this case (and also when the compiler does not know th

Re: [Qemu-devel] [PATCH] ppce500_spin: Replace assert by hw_error (fixes compiler warning)

2012-04-28 Thread Andreas Färber
Am 28.04.2012 17:52, schrieb Stefan Weil: > The default case in function spin_read should never be reached, > therefore the old code used assert(0) to abort QEMU. > > This does not work when QEMU is compiled with macro NDEBUG defined. > In this case (and also when the compiler does not know that a