> -----Original Messages----- > From: "Su Hang" <suhan...@mails.ucas.ac.cn> > Sent Time: 2018-04-16 22:49:48 (Monday) > To: "stefan hajnoczi" <stefa...@gmail.com> > Cc: "jim mussared" <j...@groklearning.com>, qemu-devel > <qemu-devel@nongnu.org>, "joel stanley" <j...@jms.id.au> > Subject: Re: [Qemu-devel] [PATCH v4 1/2] Implement .hex file loader
> I have tried to use be16_to_cpu() the first time you suggested it to me, > but qemu crashed... > I have read other places call this function to verify I use it correctly, > but it did crash(that's why I choose bswap16()), It's strange... > I'll report more detail about this case tomorrow. Oops, when I try be16_to_cpu() today, It works without any problems... I don't know what to say, maybe I have misused someplace last time.