Skip to content
  • Peter Maydell's avatar
    exec-all.h: Make MAX_OP_PER_INSTR large enough for target-arm's uses · 5b620fb6
    Peter Maydell authored
    
    
    The target-arm frontend's worst-case TCG ops per instr is 194 (and in
    general many of the "load multiple registers" ARM instructions generate
    more than 100 TCG ops). Raise MAX_OP_PER_INSTR accordingly to avoid
    possible buffer overruns.
    
    Since it doesn't make any sense for the "64 bit guest on 32 bit host"
    case to have a smaller limit than the normal case, we collapse the
    two cases back into each other again.
    
    (This increase costs us about 14K in extra static buffer space and
    21K of extra margin at the end of a 32MB codegen buffer.)
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    5b620fb6