v4_2_0.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package qemu
  15. func init() {
  16. RegisterCmd(
  17. newCmd_4_2_0_x86_64(),
  18. newCmd_4_2_0_aarch64(),
  19. )
  20. }
  21. func newCmd_4_2_0_x86_64() QemuCommand {
  22. return newBaseCommand(
  23. Version_4_2_0,
  24. Arch_x86_64,
  25. newOpt_4_2_0_x86_64())
  26. }
  27. type opt_420_x86_64 struct {
  28. *baseOptions_x86_64
  29. *baseOptions_ge_310
  30. }
  31. func newOpt_4_2_0_x86_64() QemuOptions {
  32. return &opt_420_x86_64{
  33. baseOptions_x86_64: newBaseOptions_x86_64(),
  34. baseOptions_ge_310: newBaseOptionsGE310(),
  35. }
  36. }
  37. func newCmd_4_2_0_aarch64() QemuCommand {
  38. return newBaseCommand(
  39. Version_4_2_0,
  40. Arch_aarch64,
  41. newOpt_4_2_0_aarch64())
  42. }
  43. type opt_420_aarch64 struct {
  44. *baseOptions_aarch64
  45. *baseOptions_ge_310
  46. }
  47. func newOpt_4_2_0_aarch64() QemuOptions {
  48. return &opt_420_aarch64{
  49. baseOptions_aarch64: newBaseOptions_aarch64(),
  50. baseOptions_ge_310: newBaseOptionsGE310(),
  51. }
  52. }