Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
softmmu/vl.c: inline include/qemu/qemu-options.h into vl.c
qemu-options.h just includes qemu-options.def with some #defines.
We already do this in vl.c in other place. Since no other file
includes qemu-options.h anymore, just inline it in vl.c.

This effectively reverts second half of commit 59a5264.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-ID: <20230901101302.3618955-8-mjt@tls.msk.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Michael Tokarev authored and bonzini committed Sep 1, 2023
1 parent 36d61c9 commit 1a1dd72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 42 deletions.
41 changes: 0 additions & 41 deletions include/qemu/qemu-options.h

This file was deleted.

11 changes: 10 additions & 1 deletion softmmu/vl.c
Expand Up @@ -91,7 +91,6 @@
#include "qapi/qobject-input-visitor.h"
#include "qemu/option.h"
#include "qemu/config-file.h"
#include "qemu/qemu-options.h"
#include "qemu/main-loop.h"
#ifdef CONFIG_VIRTFS
#include "fsdev/qemu-fsdev.h"
Expand Down Expand Up @@ -894,6 +893,16 @@ static void help(int exitcode)
exit(exitcode);
}

enum {

#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
opt_enum,
#define DEFHEADING(text)
#define ARCHHEADING(text, arch_mask)

#include "qemu-options.def"
};

#define HAS_ARG 0x0001

typedef struct QEMUOption {
Expand Down

0 comments on commit 1a1dd72

Please sign in to comment.