mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Hexagon (target/hexagon) Add pkt and insn to DisasContext
This enables us to reduce the number of parameters to many functions In particular, the generated functions previously took all 3 as arguments Not only does this simplify the code, it improves the translation time Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20221108162906.3166-2-tsimpson@quicinc.com>
This commit is contained in:
parent
4208e6ae11
commit
1e536334cc
8 changed files with 89 additions and 88 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
|
||||
* Copyright(c) 2019-2022 Qualcomm Innovation Center, Inc. All Rights Reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -23,10 +23,13 @@
|
|||
#include "cpu.h"
|
||||
#include "exec/translator.h"
|
||||
#include "tcg/tcg-op.h"
|
||||
#include "insn.h"
|
||||
#include "internal.h"
|
||||
|
||||
typedef struct DisasContext {
|
||||
DisasContextBase base;
|
||||
Packet *pkt;
|
||||
Insn *insn;
|
||||
uint32_t mem_idx;
|
||||
uint32_t num_packets;
|
||||
uint32_t num_insns;
|
||||
|
@ -147,6 +150,6 @@ extern TCGv hex_vstore_addr[VSTORES_MAX];
|
|||
extern TCGv hex_vstore_size[VSTORES_MAX];
|
||||
extern TCGv hex_vstore_pending[VSTORES_MAX];
|
||||
|
||||
bool is_gather_store_insn(Insn *insn, Packet *pkt);
|
||||
void process_store(DisasContext *ctx, Packet *pkt, int slot_num);
|
||||
bool is_gather_store_insn(DisasContext *ctx);
|
||||
void process_store(DisasContext *ctx, int slot_num);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue