TORONTO (AP)—John McEnroe had to be helped off the court with a leg injury during a Rogers Legends Cup match against Michael Chang.

The seven-time Grand Slam champion was stretching for a shot late in the second set Saturday when he collapsed to the ground, his face twisted in pain.

Chang and two medical officials tended to McEnroe as he lay on the court for nearly 10 minutes. They finally hoisted him to his feet and he hobbled off the court, his arms wrapped around the two medics.

He stopped at one point to toss his white hat into the crowd, the effort causing him more discomfort.

The 52-year-old McEnroe was receiving treatment at the Rexall Centre for what appeared to be a left hamstring injury.

This is the first year for the legends event as part of the Rogers Cup.