OSDN Git Service

hw/core/generic-loader: Compile only once, not for each target
authorThomas Huth <thuth@redhat.com>
Fri, 5 Oct 2018 12:53:38 +0000 (14:53 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 17 Oct 2018 06:45:37 +0000 (08:45 +0200)
commit1a1ff38c55fac562f53ef65cf5022acba2b36676
tree9469b2f029eec059029d4ba8a9eed3747152a557
parentc95ac10340ec42d2e8828b5ddab1c9d0c15dbc0e
hw/core/generic-loader: Compile only once, not for each target

The generic-loader is currently compiled target specific due to one
single "#ifdef TARGET_WORDS_BIGENDIAN" in the file. We have already a
function called target_words_bigendian() for this instead, so we can
put the generic-loader into common-obj to save some compilation time.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/core/Makefile.objs
hw/core/generic-loader.c